Loading...
Searching...
No Matches
wallNormalInfo Class Reference

Holds information regarding nearest wall point. Used in wall refinement. More...

#include <wallNormalInfo.H>

Public Member Functions

 wallNormalInfo ()
 Default construct.
 wallNormalInfo (const vector &normal)
 Construct from normal.
const vectornormal () const
vectornormal ()
template<class TrackingData>
bool valid (TrackingData &td) const
 Changed or contains original (invalid) value.
template<class TrackingData>
bool sameGeometry (const polyMesh &, const wallNormalInfo &, const scalar, TrackingData &td) const
 Check for identical geometrical data (eg, cyclics checking).
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.
template<class TrackingData>
void enterDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
 Reverse of leaveDomain.
template<class TrackingData>
void transform (const polyMesh &, const tensor &, TrackingData &td)
 Apply rotation matrix to any coordinates.
template<class TrackingData>
bool updateCell (const polyMesh &, const label thisCelli, const label neighbourFacei, const wallNormalInfo &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring face.
template<class TrackingData>
bool updateFace (const polyMesh &, const label thisFacei, const label neighbourCelli, const wallNormalInfo &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell.
template<class TrackingData>
bool updateFace (const polyMesh &, const label thisFacei, const wallNormalInfo &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face.
template<class TrackingData>
bool interpolate (const polyMesh &, const point &pt, const label i0, const wallNormalInfo &f0, const label i1, const wallNormalInfo &f1, const scalar weight, const scalar tol, TrackingData &td)
 Interpolate between two values (lerp). Returns true if causes changes. Not sure if needs to be specialised between face and cell and what index is needed...
template<class TrackingData>
bool equal (const wallNormalInfo &, TrackingData &td) const
 Test for equality, with TrackingData.
bool operator== (const wallNormalInfo &) const
 Test for equality.
bool operator!= (const wallNormalInfo &) const
 Test for inequality.

Friends

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

Detailed Description

Holds information regarding nearest wall point. Used in wall refinement.

Source files

Definition at line 60 of file wallNormalInfo.H.

Constructor & Destructor Documentation

◆ wallNormalInfo() [1/2]

wallNormalInfo ( )
inline

Default construct.

Definition at line 57 of file wallNormalInfoI.H.

References Foam::max().

Referenced by equal(), interpolate(), operator!=(), operator<<, operator==(), operator>>, sameGeometry(), updateCell(), updateFace(), and updateFace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wallNormalInfo() [2/2]

wallNormalInfo ( const vector & normal)
inline

Construct from normal.

Definition at line 63 of file wallNormalInfoI.H.

References normal().

Here is the call graph for this function:

Member Function Documentation

◆ normal() [1/2]

const vector & normal ( ) const
inline

Definition at line 99 of file wallNormalInfo.H.

Referenced by wallLayerCells::wallLayerCells(), and wallNormalInfo().

Here is the caller graph for this function:

◆ normal() [2/2]

vector & normal ( )
inline

Definition at line 103 of file wallNormalInfo.H.

◆ valid()

template<class TrackingData>
bool valid ( TrackingData & td) const
inline

Changed or contains original (invalid) value.

Definition at line 72 of file wallNormalInfoI.H.

References VectorSpace< Form, Cmpt, Ncmpts >::max, and td().

Referenced by interpolate(), and wallLayerCells::wallLayerCells().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sameGeometry()

template<class TrackingData>
bool sameGeometry ( const polyMesh & ,
const wallNormalInfo & w2,
const scalar tol,
TrackingData & td ) const
inline

Check for identical geometrical data (eg, cyclics checking).

Definition at line 80 of file wallNormalInfoI.H.

References td(), w2, and wallNormalInfo().

Here is the call graph for this function:

◆ leaveDomain()

template<class TrackingData>
void leaveDomain ( const polyMesh & ,
const polyPatch & patch,
const label patchFacei,
const point & faceCentre,
TrackingData & td )
inline

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

centre

Definition at line 94 of file wallNormalInfoI.H.

References td().

Here is the call graph for this function:

◆ enterDomain()

template<class TrackingData>
void enterDomain ( const polyMesh & ,
const polyPatch & patch,
const label patchFacei,
const point & faceCentre,
TrackingData & td )
inline

Reverse of leaveDomain.

Definition at line 118 of file wallNormalInfoI.H.

References td().

Here is the call graph for this function:

◆ transform()

template<class TrackingData>
void transform ( const polyMesh & ,
const tensor & rotTensor,
TrackingData & td )
inline

Apply rotation matrix to any coordinates.

Definition at line 107 of file wallNormalInfoI.H.

References td().

Here is the call graph for this function:

◆ updateCell()

template<class TrackingData>
bool updateCell ( const polyMesh & ,
const label thisCelli,
const label neighbourFacei,
const wallNormalInfo & neighbourInfo,
const scalar tol,
TrackingData & td )
inline

Influence of neighbouring face.

Definition at line 131 of file wallNormalInfoI.H.

References td(), update(), and wallNormalInfo().

Here is the call graph for this function:

◆ updateFace() [1/2]

template<class TrackingData>
bool updateFace ( const polyMesh & ,
const label thisFacei,
const label neighbourCelli,
const wallNormalInfo & neighbourInfo,
const scalar tol,
TrackingData & td )
inline

Influence of neighbouring cell.

Definition at line 147 of file wallNormalInfoI.H.

References td(), update(), and wallNormalInfo().

Here is the call graph for this function:

◆ updateFace() [2/2]

template<class TrackingData>
bool updateFace ( const polyMesh & ,
const label thisFacei,
const wallNormalInfo & neighbourInfo,
const scalar tol,
TrackingData & td )
inline

Influence of different value on same face.

Definition at line 163 of file wallNormalInfoI.H.

References td(), update(), and wallNormalInfo().

Here is the call graph for this function:

◆ interpolate()

template<class TrackingData>
bool interpolate ( const polyMesh & ,
const point & pt,
const label i0,
const wallNormalInfo & f0,
const label i1,
const wallNormalInfo & f1,
const scalar weight,
const scalar tol,
TrackingData & td )
inline

Interpolate between two values (lerp). Returns true if causes changes. Not sure if needs to be specialised between face and cell and what index is needed...

Definition at line 188 of file wallNormalInfoI.H.

References td(), update(), valid(), and wallNormalInfo().

Here is the call graph for this function:

◆ equal()

template<class TrackingData>
bool equal ( const wallNormalInfo & rhs,
TrackingData & td ) const
inline

Test for equality, with TrackingData.

Definition at line 177 of file wallNormalInfoI.H.

References Foam::operator==(), Foam::rhs(), td(), and wallNormalInfo().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const wallNormalInfo & rhs) const
inline

Test for equality.

Definition at line 218 of file wallNormalInfoI.H.

References Foam::rhs(), and wallNormalInfo().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const wallNormalInfo & rhs) const
inline

Test for inequality.

Definition at line 227 of file wallNormalInfoI.H.

References Foam::rhs(), and wallNormalInfo().

Here is the call graph for this function:

◆ operator<<

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

References wallNormalInfo().

◆ operator>>

Istream & operator>> ( Istream & ,
wallNormalInfo &  )
friend

References wallNormalInfo().


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