meshToMeshData Class Reference

Transfers refinement levels such that slow transition between levels is maintained. Used in FaceCellWave. More...

Classes

class  trackData
 Class used to pass non-cell data to the update function. More...
 

Public Member Functions

 meshToMeshData ()
 Construct null. More...
 
 meshToMeshData (const label tgtCelli)
 Construct from count. More...
 
label tgtCell () const
 
labeltgtCell ()
 
template<class TrackingData >
bool valid (TrackingData &) const
 Check whether origin has been changed at all or. More...
 
template<class TrackingData >
bool sameGeometry (const polyMesh &, const meshToMeshData &, const scalar, TrackingData &) const
 Check for identical geometrical data. Used for cyclics checking. More...
 
template<class TrackingData >
void leaveDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &)
 Convert any absolute coordinates into relative to (patch)face. More...
 
template<class TrackingData >
void enterDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &)
 Reverse of leaveDomain. More...
 
template<class TrackingData >
void transform (const polyMesh &, const tensor &, TrackingData &)
 Apply rotation matrix to any coordinates. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &, const label thisCelli, const label neighbourFacei, const meshToMeshData &neighbourInfo, const scalar tol, TrackingData &)
 Influence of neighbouring face. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const label neighbourCelli, const meshToMeshData &neighbourInfo, const scalar tol, TrackingData &)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const meshToMeshData &neighbourInfo, const scalar tol, TrackingData &)
 Influence of different value on same face. More...
 
template<class TrackingData >
bool equal (const meshToMeshData &, TrackingData &) const
 Same (like operator==) More...
 
bool operator== (const meshToMeshData &) const
 
bool operator!= (const meshToMeshData &) const
 

Public Attributes

label tgtCelli_
 

Friends

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

Detailed Description

Transfers refinement levels such that slow transition between levels is maintained. Used in FaceCellWave.

Source files

Definition at line 62 of file meshToMeshData.H.

Constructor & Destructor Documentation

◆ meshToMeshData() [1/2]

meshToMeshData ( )
inline

Construct null.

Definition at line 32 of file meshToMeshDataI.H.

◆ meshToMeshData() [2/2]

meshToMeshData ( const label  tgtCelli)
inline

Construct from count.

Definition at line 38 of file meshToMeshDataI.H.

Member Function Documentation

◆ tgtCell() [1/2]

label tgtCell ( ) const
inline

Definition at line 108 of file meshToMeshData.H.

References meshToMeshData::tgtCelli_.

◆ tgtCell() [2/2]

label& tgtCell ( )
inline

Definition at line 113 of file meshToMeshData.H.

References meshToMeshData::tgtCelli_.

◆ valid()

bool valid ( TrackingData &  td) const
inline

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 47 of file meshToMeshDataI.H.

Referenced by meshToMeshData::equal().

Here is the caller graph for this function:

◆ sameGeometry()

bool sameGeometry ( const polyMesh ,
const meshToMeshData ,
const  scalar,
TrackingData &  td 
) const
inline

Check for identical geometrical data. Used for cyclics checking.

Definition at line 56 of file meshToMeshDataI.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 69 of file meshToMeshDataI.H.

◆ enterDomain()

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

Reverse of leaveDomain.

Definition at line 92 of file meshToMeshDataI.H.

◆ transform()

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

Apply rotation matrix to any coordinates.

Definition at line 81 of file meshToMeshDataI.H.

◆ updateCell()

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

Influence of neighbouring face.

Definition at line 105 of file meshToMeshDataI.H.

References polyMesh::CELL_TETS, primitiveMesh::cellCentres(), forAll, mesh, and meshToMeshData::tgtCelli_.

Here is the call graph for this function:

◆ updateFace() [1/2]

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

Influence of neighbouring cell.

Definition at line 152 of file meshToMeshDataI.H.

References meshToMeshData::tgtCelli_.

◆ updateFace() [2/2]

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

Influence of different value on same face.

Definition at line 174 of file meshToMeshDataI.H.

References meshToMeshData::tgtCelli_.

◆ equal()

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

Same (like operator==)

Definition at line 194 of file meshToMeshDataI.H.

References Foam::operator==(), and meshToMeshData::valid().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const meshToMeshData rhs) const
inline

Definition at line 213 of file meshToMeshDataI.H.

References meshToMeshData::tgtCelli_.

◆ operator!=()

bool operator!= ( const meshToMeshData rhs) const
inline

Definition at line 222 of file meshToMeshDataI.H.

Friends And Related Function Documentation

◆ operator<<

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

◆ operator>>

Istream& operator>> ( Istream ,
meshToMeshData  
)
friend

Member Data Documentation

◆ tgtCelli_


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