Data Structures | Public Member Functions | Private Member Functions
transportData Class Reference

Holds information (coordinate and distance). Walks out 0.5*distance. More...

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

Data Structures

class  trackData
 Class used to pass additional data in. More...
 

Public Member Functions

 transportData ()
 Construct null. More...
 
 transportData (const point &origin, const scalar gapSize, const scalar distSqr)
 Construct from origin, gapSize, distance. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &mesh, const label thisCellI, const label neighbourFaceI, const transportData &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 transportData &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &mesh, const label thisFaceI, const transportData &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...
 

Private Member Functions

template<class TrackingData >
bool update (const point &, const transportData &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 distance). Walks out 0.5*distance.

Source files

Definition at line 52 of file transportData.H.

Constructor & Destructor Documentation

◆ transportData() [1/2]

transportData ( )
inline

Construct null.

Definition at line 80 of file transportDataI.H.

◆ transportData() [2/2]

transportData ( const point origin,
const scalar  gapSize,
const scalar  distSqr 
)
inline

Construct from origin, gapSize, distance.

Definition at line 87 of file transportDataI.H.

Member Function Documentation

◆ update()

bool update ( const point pt,
const transportData 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 transportDataI.H.

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

Here is the call graph for this function:

◆ updateCell()

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

Influence of neighbouring face.

Calls update(...) with cellCentre of cellI

Definition at line 101 of file transportDataI.H.

References mesh.

◆ updateFace() [1/2]

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

Influence of neighbouring cell.

Calls update(...) with faceCentre of faceI

Definition at line 131 of file transportDataI.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 transportData 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 157 of file transportDataI.H.

References primitiveMesh::faceCentres(), and mesh.

Here is the call graph for this function:

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