Public Member Functions | Static Public Attributes | Private Member Functions
wallPointYPlus Class Reference

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

Inheritance diagram for wallPointYPlus:
Inheritance graph
[legend]
Collaboration diagram for wallPointYPlus:
Collaboration graph
[legend]

Public Member Functions

 wallPointYPlus ()
 Construct null. More...
 
 wallPointYPlus (const point &origin, const scalar yStar, const scalar distSqr)
 Construct from origin, yStar, distance. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &mesh, const label thisCellI, const label neighbourFaceI, const wallPointYPlus &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 wallPointYPlus &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &mesh, const label thisFaceI, const wallPointYPlus &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face. More...
 
- Public Member Functions inherited from wallPointData< scalar >
 wallPointData ()
 Construct null. More...
 
 wallPointData (const point &origin, const Type &data, const scalar distSqr)
 Construct from origin, normal, distance. More...
 
const Type & data () const
 
Type & data ()
 
bool updateCell (const polyMesh &mesh, const label thisCellI, const label neighbourFaceI, const wallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring face. More...
 
bool updateFace (const polyMesh &mesh, const label thisFaceI, const label neighbourCellI, const wallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
bool updateFace (const polyMesh &mesh, const label thisFaceI, const wallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face. More...
 

Static Public Attributes

static scalar yPlusCutOff = 200
 cut-off value for y+ More...
 

Private Member Functions

template<class TrackingData >
bool update (const point &, const wallPointYPlus &w2, const scalar tol, TrackingData &td)
 Evaluate distance to point. Update distSqr, origin from whomever. More...
 

Additional Inherited Members

- Public Types inherited from wallPointData< scalar >
typedef Type dataType
 

Detailed Description

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

Used in VanDriest wall damping where the interest is in y+ but only needs to be calculated up to e.g. y+ < 200. In all other cells/faces the damping function becomes 1, since y gets initialized to GREAT and yStar to 1.

Note: should feed the additional argument (yPlusCutoff) through as a template argument into FaceCellWave

Source files

Definition at line 58 of file wallPointYPlus.H.

Constructor & Destructor Documentation

◆ wallPointYPlus() [1/2]

wallPointYPlus ( )
inline

Construct null.

Definition at line 88 of file wallPointYPlusI.H.

References wallPointData< scalar >::data().

Here is the call graph for this function:

◆ wallPointYPlus() [2/2]

wallPointYPlus ( const point origin,
const scalar  yStar,
const scalar  distSqr 
)
inline

Construct from origin, yStar, distance.

Definition at line 99 of file wallPointYPlusI.H.

Member Function Documentation

◆ update()

bool update ( const point pt,
const wallPointYPlus 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 36 of file wallPointYPlusI.H.

References wallPointData::data(), Foam::diff(), Foam::magSqr(), and Foam::sqrt().

Here is the call graph for this function:

◆ updateCell()

bool updateCell ( const polyMesh mesh,
const label  thisCellI,
const label  neighbourFaceI,
const wallPointYPlus neighbourWallInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of neighbouring face.

Calls update(...) with cellCentre of cellI

Definition at line 114 of file wallPointYPlusI.H.

References mesh.

◆ updateFace() [1/2]

bool updateFace ( const polyMesh mesh,
const label  thisFaceI,
const label  neighbourCellI,
const wallPointYPlus neighbourWallInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of neighbouring cell.

Calls update(...) with faceCentre of faceI

Definition at line 138 of file wallPointYPlusI.H.

References primitiveMesh::faceCentres(), and mesh.

Here is the call graph for this function:

◆ updateFace() [2/2]

bool updateFace ( const polyMesh mesh,
const label  thisFaceI,
const wallPointYPlus 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 162 of file wallPointYPlusI.H.

References primitiveMesh::faceCentres(), and mesh.

Here is the call graph for this function:

Field Documentation

◆ yPlusCutOff

Foam::scalar yPlusCutOff = 200
static

cut-off value for y+

Definition at line 82 of file wallPointYPlus.H.

Referenced by vanDriestDelta::calcDelta().


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