FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Holds information regarding nearest wall point. Used in wall distance calculation. More...

#include <meshTools/wallPoint.H>


Detailed Description

Holds information regarding nearest wall point. Used in wall distance calculation.

Source files

Definition at line 64 of file wallPoint.H.

Inheritance diagram for wallPoint:
Collaboration diagram for wallPoint:

List of all members.

Public Member Functions

 wallPoint ()
 Construct null.
 wallPoint (const point &origin, const scalar distSqr)
 Construct from origin, distance.
 wallPoint (const wallPoint &)
 Construct as copy.
const point &  origin () const
point &  origin ()
scalar  distSqr () const
scalar &  distSqr ()
bool  valid () const
 Check whether origin has been changed at all or.
bool  sameGeometry (const polyMesh &, const wallPoint &, const scalar) const
 Check for identical geometrical data. Used for cyclics checking.
void  leaveDomain (const polyMesh &, const polyPatch &, const label patchFaceI, const point &faceCentre)
 Convert any absolute coordinates into relative to (patch)face.
void  enterDomain (const polyMesh &, const polyPatch &, const label patchFaceI, const point &faceCentre)
 Reverse of leaveDomain.
void  transform (const polyMesh &, const tensor &)
 Apply rotation matrix to any coordinates.
bool  updateCell (const polyMesh &, const label thisCellI, const label neighbourFaceI, const wallPoint &neighbourInfo, const scalar tol)
 Influence of neighbouring face.
bool  updateFace (const polyMesh &, const label thisFaceI, const label neighbourCellI, const wallPoint &neighbourInfo, const scalar tol)
 Influence of neighbouring cell.
bool  updateFace (const polyMesh &, const label thisFaceI, const wallPoint &neighbourInfo, const scalar tol)
 Influence of different value on same face.
bool  operator== (const wallPoint &) const
bool  operator!= (const wallPoint &) const

Static Public Attributes

static point  greatPoint
 initial point far away.

Friends

Ostream &  operator<< (Ostream &, const wallPoint &)
Istream &  operator>> (Istream &, wallPoint &)

Constructor & Destructor Documentation

wallPoint (  ) [inline]

Construct null.

Definition at line 84 of file wallPointI.H.

wallPoint ( const point &   origin,
const scalar   distSqr  
) [inline]

Construct from origin, distance.

Definition at line 92 of file wallPointI.H.

wallPoint ( const wallPoint &   wpt  ) [inline]

Construct as copy.

Definition at line 99 of file wallPointI.H.


Member Function Documentation

const Foam::point & origin (  ) const [inline]

Definition at line 107 of file wallPointI.H.

Referenced by Foam::operator<<(), wallPoint::operator==(), and Foam::operator>>().

Foam::point & origin (  ) [inline]

Definition at line 113 of file wallPointI.H.

Foam::scalar distSqr (  ) const [inline]

Definition at line 119 of file wallPointI.H.

Referenced by Foam::operator<<(), Foam::operator>>(), and wallPoint::sameGeometry().

Foam::scalar & distSqr (  ) [inline]

Definition at line 125 of file wallPointI.H.

bool valid (  ) const [inline]

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 131 of file wallPointI.H.

bool sameGeometry ( const polyMesh &   ,
const wallPoint &   w2,
const scalar   tol  
) const [inline]

Check for identical geometrical data. Used for cyclics checking.

Definition at line 139 of file wallPointI.H.

References wallPoint::distSqr(), and Foam::mag().

void leaveDomain ( const polyMesh &   ,
const polyPatch &   ,
const label   patchFaceI,
const point &   faceCentre  
) [inline]

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

centre

Definition at line 167 of file wallPointI.H.

void enterDomain ( const polyMesh &   ,
const polyPatch &   ,
const label   patchFaceI,
const point &   faceCentre  
) [inline]

Reverse of leaveDomain.

Definition at line 191 of file wallPointI.H.

void transform ( const polyMesh &   ,
const tensor &   rotTensor  
) [inline]

Apply rotation matrix to any coordinates.

Definition at line 179 of file wallPointI.H.

References Foam::transform().

bool updateCell ( const polyMesh &   mesh,
const label   thisCellI,
const label   neighbourFaceI,
const wallPoint &   neighbourInfo,
const scalar   tol  
) [inline]

Influence of neighbouring face.

Definition at line 205 of file wallPointI.H.

References primitiveMesh::cellCentres().

bool updateFace ( const polyMesh &   mesh,
const label   thisFaceI,
const label   neighbourCellI,
const wallPoint &   neighbourInfo,
const scalar   tol  
) [inline]

Influence of neighbouring cell.

Definition at line 225 of file wallPointI.H.

References primitiveMesh::faceCentres().

bool updateFace ( const polyMesh &   mesh,
const label   thisFaceI,
const wallPoint &   neighbourInfo,
const scalar   tol  
) [inline]

Influence of different value on same face.

Definition at line 244 of file wallPointI.H.

References primitiveMesh::faceCentres().

bool operator== ( const wallPoint &   rhs  ) const [inline]

Definition at line 263 of file wallPointI.H.

References wallPoint::origin().

bool operator!= ( const wallPoint &   rhs  ) const [inline]

Definition at line 269 of file wallPointI.H.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &   ,
const wallPoint &    
) [friend]
Istream& operator>> ( Istream &   ,
wallPoint &    
) [friend]

Member Data Documentation


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