cellInfo Class Reference

Holds information regarding type of cell. Used in inside/outside determination in cellClassification. More...

Public Member Functions

 cellInfo ()
 Default construct - as cellClassification::NOTSET. More...
 
 cellInfo (const label ctype)
 Construct from cellClassification type. More...
 
label type () const
 
label & type ()
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Changed or contains original (invalid) value. More...
 
template<class TrackingData >
bool sameGeometry (const polyMesh &, const cellInfo &, const scalar, TrackingData &td) const
 Check for identical geometrical data (eg, cyclics checking) More...
 
template<class TrackingData >
void leaveDomain (const polyMesh &, const polyPatch &patch, const label patchFacei, const point &faceCentre, TrackingData &td)
 Convert any absolute coordinates into relative to (patch)face. More...
 
template<class TrackingData >
void enterDomain (const polyMesh &, const polyPatch &patch, const label patchFacei, const point &faceCentre, TrackingData &td)
 Reverse of leaveDomain. More...
 
template<class TrackingData >
void transform (const polyMesh &, const tensor &rotTensor, TrackingData &td)
 Apply rotation matrix to any coordinates. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &, const label thisCelli, const label neighbourFacei, const cellInfo &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring face. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const label neighbourCelli, const cellInfo &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const cellInfo &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face. More...
 
template<class TrackingData >
bool equal (const cellInfo &, TrackingData &td) const
 Test for equality, with TrackingData. More...
 
bool operator== (const cellInfo &) const
 Test for equality. More...
 
bool operator!= (const cellInfo &) const
 Test for inequality. More...
 

Friends

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

Detailed Description

Holds information regarding type of cell. Used in inside/outside determination in cellClassification.

Source files

Definition at line 64 of file cellInfo.H.

Constructor & Destructor Documentation

◆ cellInfo() [1/2]

cellInfo ( )
inline

Default construct - as cellClassification::NOTSET.

Definition at line 98 of file cellInfoI.H.

◆ cellInfo() [2/2]

cellInfo ( const label  ctype)
inlineexplicit

Construct from cellClassification type.

Definition at line 104 of file cellInfoI.H.

Member Function Documentation

◆ type() [1/2]

label type ( ) const
inline

Definition at line 102 of file cellInfo.H.

◆ type() [2/2]

label& type ( )
inline

Definition at line 106 of file cellInfo.H.

◆ valid()

bool valid ( TrackingData &  td) const
inline

Changed or contains original (invalid) value.

Definition at line 113 of file cellInfoI.H.

References cellClassification::NOTSET.

Referenced by FaceCellWave< Type, TrackingData >::updateCell().

Here is the caller graph for this function:

◆ sameGeometry()

bool sameGeometry ( const polyMesh ,
const cellInfo w2,
const scalar  tol,
TrackingData &  td 
) const
inline

Check for identical geometrical data (eg, cyclics checking)

Definition at line 122 of file cellInfoI.H.

◆ leaveDomain()

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 136 of file cellInfoI.H.

◆ enterDomain()

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

Reverse of leaveDomain.

Definition at line 160 of file cellInfoI.H.

◆ transform()

void transform ( const polyMesh ,
const tensor rotTensor,
TrackingData &  td 
)
inline

Apply rotation matrix to any coordinates.

Definition at line 149 of file cellInfoI.H.

◆ updateCell()

bool updateCell ( const polyMesh ,
const label  thisCelli,
const label  neighbourFacei,
const cellInfo neighbourInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of neighbouring face.

Definition at line 173 of file cellInfoI.H.

References update().

Referenced by FaceCellWave< Type, TrackingData >::updateCell().

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

◆ updateFace() [1/2]

bool updateFace ( const polyMesh ,
const label  thisFacei,
const label  neighbourCelli,
const cellInfo neighbourInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of neighbouring cell.

Definition at line 197 of file cellInfoI.H.

References update().

Here is the call graph for this function:

◆ updateFace() [2/2]

bool updateFace ( const polyMesh ,
const label  thisFacei,
const cellInfo neighbourInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same face.

Definition at line 221 of file cellInfoI.H.

References update().

Here is the call graph for this function:

◆ equal()

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

Test for equality, with TrackingData.

Definition at line 243 of file cellInfoI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const cellInfo rhs) const
inline

Test for equality.

Definition at line 255 of file cellInfoI.H.

◆ operator!=()

bool operator!= ( const cellInfo rhs) const
inline

Test for inequality.

Definition at line 264 of file cellInfoI.H.

Friends And Related Function Documentation

◆ operator<<

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

◆ operator>>

Istream& operator>> ( Istream ,
cellInfo  
)
friend

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