refinementData Class Reference

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

Public Member Functions

 refinementData ()
 Default construct. More...
 
 refinementData (const label refinementCount, const label count)
 Construct from count. More...
 
label refinementCount () const
 
label & refinementCount ()
 
label count () const
 
label & count ()
 
bool isRefined () const
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Changed or contains original (invalid) value. More...
 
template<class TrackingData >
bool sameGeometry (const polyMesh &, const refinementData &, const scalar, TrackingData &td) const
 Check for identical geometrical data (eg, cyclics checking) More...
 
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. More...
 
template<class TrackingData >
void enterDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
 Reverse of leaveDomain. More...
 
template<class TrackingData >
void transform (const polyMesh &, const tensor &, TrackingData &td)
 Apply rotation matrix to any coordinates. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &, const label thisCelli, const label neighbourFacei, const refinementData &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 refinementData &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const refinementData &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face. More...
 
template<class TrackingData >
bool equal (const refinementData &, TrackingData &td) const
 Test for equality, with TrackingData. More...
 
bool operator== (const refinementData &) const
 Test for equality. More...
 
bool operator!= (const refinementData &) const
 Test for inequality. More...
 

Friends

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

Detailed Description

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

Source files

Definition at line 62 of file refinementData.H.

Constructor & Destructor Documentation

◆ refinementData() [1/2]

refinementData ( )
inline

Default construct.

Definition at line 31 of file refinementDataI.H.

◆ refinementData() [2/2]

refinementData ( const label  refinementCount,
const label  count 
)
inline

Construct from count.

Definition at line 39 of file refinementDataI.H.

Member Function Documentation

◆ refinementCount() [1/2]

label refinementCount ( ) const
inline

Definition at line 87 of file refinementData.H.

Referenced by refinementData::updateCell(), and refinementData::updateFace().

Here is the caller graph for this function:

◆ refinementCount() [2/2]

label& refinementCount ( )
inline

Definition at line 91 of file refinementData.H.

◆ count() [1/2]

label count ( ) const
inline

Definition at line 96 of file refinementData.H.

Referenced by hexRef8::consistentSlowRefinement(), refinementData::updateCell(), and refinementData::updateFace().

Here is the caller graph for this function:

◆ count() [2/2]

label& count ( )
inline

Definition at line 100 of file refinementData.H.

◆ isRefined()

bool isRefined ( ) const
inline

Definition at line 105 of file refinementData.H.

Referenced by refinementData::updateCell().

Here is the caller graph for this function:

◆ valid()

bool valid ( TrackingData &  td) const
inline

Changed or contains original (invalid) value.

Definition at line 52 of file refinementDataI.H.

◆ sameGeometry()

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

Check for identical geometrical data (eg, cyclics checking)

Definition at line 61 of file refinementDataI.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 75 of file refinementDataI.H.

◆ enterDomain()

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

Reverse of leaveDomain.

Definition at line 99 of file refinementDataI.H.

◆ transform()

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

Apply rotation matrix to any coordinates.

Definition at line 88 of file refinementDataI.H.

◆ updateCell()

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

Influence of neighbouring face.

Definition at line 112 of file refinementDataI.H.

References Foam::abort(), refinementData::count(), Foam::FatalError, FatalErrorInFunction, refinementData::isRefined(), Foam::max(), and refinementData::refinementCount().

Here is the call graph for this function:

◆ updateFace() [1/2]

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

Influence of neighbouring cell.

Definition at line 174 of file refinementDataI.H.

References refinementData::count(), and refinementData::refinementCount().

Referenced by hexRef8::consistentSlowRefinement().

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

◆ updateFace() [2/2]

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

Influence of different value on same face.

Definition at line 209 of file refinementDataI.H.

References refinementData::count(), and refinementData::refinementCount().

Here is the call graph for this function:

◆ equal()

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

Test for equality, with TrackingData.

Definition at line 242 of file refinementDataI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const refinementData rhs) const
inline

Test for equality.

Definition at line 254 of file refinementDataI.H.

◆ operator!=()

bool operator!= ( const refinementData rhs) const
inline

Test for inequality.

Definition at line 263 of file refinementDataI.H.

Friends And Related Function Documentation

◆ operator<<

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

◆ operator>>

Istream& operator>> ( Istream ,
refinementData  
)
friend

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