Loading...
Searching...
No Matches
meshToMeshData Class Reference

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

#include <meshToMeshData.H>

Classes

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

Public Member Functions

 meshToMeshData ()
 Default construct.
 meshToMeshData (const label tgtCelli)
 Construct from target cell.
label tgtCell () const
label & tgtCell ()
template<class TrackingData>
bool valid (TrackingData &) const
 Changed or contains original (invalid) value.
template<class TrackingData>
bool sameGeometry (const polyMesh &, const meshToMeshData &, const scalar, TrackingData &) 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 &)
 Convert absolute coordinates into relative to (patch)face centre.
template<class TrackingData>
void enterDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &)
 Reverse of leaveDomain.
template<class TrackingData>
void transform (const polyMesh &, const tensor &, TrackingData &)
 Apply rotation matrix to any coordinates.
template<class TrackingData>
bool updateCell (const polyMesh &, const label thisCelli, const label neighbourFacei, const meshToMeshData &neighbourInfo, const scalar tol, TrackingData &)
 Influence of neighbouring face.
template<class TrackingData>
bool updateFace (const polyMesh &, const label thisFacei, const label neighbourCelli, const meshToMeshData &neighbourInfo, const scalar tol, TrackingData &)
 Influence of neighbouring cell.
template<class TrackingData>
bool updateFace (const polyMesh &, const label thisFacei, const meshToMeshData &neighbourInfo, const scalar tol, TrackingData &)
 Influence of different value on same face.
template<class TrackingData>
bool equal (const meshToMeshData &, TrackingData &) const
 Test for equality, with TrackingData.
template<class TrackingData>
bool interpolate (const polyMesh &, const point &pt, const label i0, const meshToMeshData &f0, const label i1, const meshToMeshData &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...
bool operator== (const meshToMeshData &) const
 Test for equality.
bool operator!= (const meshToMeshData &) const
 Test for inequality.

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 58 of file meshToMeshData.H.

Constructor & Destructor Documentation

◆ meshToMeshData() [1/2]

meshToMeshData ( )
inline

Default construct.

Definition at line 25 of file meshToMeshDataI.H.

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

Here is the caller graph for this function:

◆ meshToMeshData() [2/2]

meshToMeshData ( const label tgtCelli)
inline

Construct from target cell.

Definition at line 31 of file meshToMeshDataI.H.

Member Function Documentation

◆ tgtCell() [1/2]

label tgtCell ( ) const
inline

Definition at line 105 of file meshToMeshData.H.

◆ tgtCell() [2/2]

label & tgtCell ( )
inline

Definition at line 109 of file meshToMeshData.H.

◆ valid()

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

Changed or contains original (invalid) value.

Definition at line 40 of file meshToMeshDataI.H.

References td().

Referenced by equal(), interpolate(), updateCell(), updateFace(), and updateFace().

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 meshToMeshData & ,
const scalar ,
TrackingData & td ) const
inline

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

Definition at line 48 of file meshToMeshDataI.H.

References meshToMeshData(), and td().

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 absolute coordinates into relative to (patch)face centre.

Definition at line 61 of file meshToMeshDataI.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 84 of file meshToMeshDataI.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 73 of file meshToMeshDataI.H.

References td().

Here is the call graph for this function:

◆ updateCell()

template<class TrackingData>
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 97 of file meshToMeshDataI.H.

References polyMesh::CELL_TETS, mesh, meshToMeshData(), td(), and valid().

Here is the call graph for this function:

◆ updateFace() [1/2]

template<class TrackingData>
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 142 of file meshToMeshDataI.H.

References mesh, meshToMeshData(), td(), and valid().

Referenced by interpolate().

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

◆ updateFace() [2/2]

template<class TrackingData>
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 164 of file meshToMeshDataI.H.

References mesh, meshToMeshData(), td(), and valid().

Here is the call graph for this function:

◆ equal()

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

Test for equality, with TrackingData.

Definition at line 184 of file meshToMeshDataI.H.

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

Here is the call graph for this function:

◆ interpolate()

template<class TrackingData>
bool interpolate ( const polyMesh & mesh,
const point & pt,
const label i0,
const meshToMeshData & f0,
const label i1,
const meshToMeshData & 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 202 of file meshToMeshDataI.H.

References mesh, meshToMeshData(), td(), updateFace(), and valid().

Here is the call graph for this function:

◆ operator==()

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

Test for equality.

Definition at line 232 of file meshToMeshDataI.H.

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

Here is the call graph for this function:

◆ operator!=()

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

Test for inequality.

Definition at line 241 of file meshToMeshDataI.H.

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

Here is the call graph for this function:

◆ operator<<

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

References meshToMeshData().

◆ operator>>

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

References meshToMeshData().


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