Transfers refinement levels such that slow transition between levels is maintained. Used in FaceCellWave. More...
Public Member Functions | |
refinementDistanceData () | |
Construct null. More... | |
refinementDistanceData (const scalar level0Size, const point &origin, const label level) | |
Construct from count. More... | |
scalar | level0Size () const |
scalar & | level0Size () |
const point & | origin () const |
point & | origin () |
label | originLevel () const |
label & | originLevel () |
label | wantedLevel (const point &pt) const |
Calculates the wanted level at a given point. Walks out from. More... | |
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 refinementDistanceData &, 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 refinementDistanceData &neighbourInfo, const scalar tol, TrackingData &) |
Influence of neighbouring face. More... | |
template<class TrackingData > | |
bool | updateFace (const polyMesh &, const label thisFacei, const label neighbourCelli, const refinementDistanceData &neighbourInfo, const scalar tol, TrackingData &) |
Influence of neighbouring cell. More... | |
template<class TrackingData > | |
bool | updateFace (const polyMesh &, const label thisFacei, const refinementDistanceData &neighbourInfo, const scalar tol, TrackingData &) |
Influence of different value on same face. More... | |
template<class TrackingData > | |
bool | equal (const refinementDistanceData &, TrackingData &) const |
Same (like operator==) More... | |
bool | operator== (const refinementDistanceData &) const |
bool | operator!= (const refinementDistanceData &) const |
Friends | |
Ostream & | operator<< (Ostream &, const refinementDistanceData &) |
Istream & | operator>> (Istream &, refinementDistanceData &) |
Transfers refinement levels such that slow transition between levels is maintained. Used in FaceCellWave.
Definition at line 63 of file refinementDistanceData.H.
|
inline |
Construct null.
Definition at line 125 of file refinementDistanceDataI.H.
|
inline |
Construct from count.
Definition at line 133 of file refinementDistanceDataI.H.
|
inline |
Definition at line 108 of file refinementDistanceData.H.
|
inline |
Definition at line 113 of file refinementDistanceData.H.
|
inline |
Definition at line 118 of file refinementDistanceData.H.
Referenced by refinementDistanceData::wantedLevel().
|
inline |
Definition at line 123 of file refinementDistanceData.H.
|
inline |
Definition at line 128 of file refinementDistanceData.H.
|
inline |
Definition at line 133 of file refinementDistanceData.H.
References refinementDistanceData::enterDomain(), refinementDistanceData::equal(), refinementDistanceData::leaveDomain(), refinementDistanceData::operator!=(), refinementDistanceData::operator<<, refinementDistanceData::operator==(), refinementDistanceData::operator>>, refinementDistanceData::sameGeometry(), refinementDistanceData::transform(), refinementDistanceData::updateCell(), refinementDistanceData::updateFace(), refinementDistanceData::valid(), and refinementDistanceData::wantedLevel().
|
inline |
Calculates the wanted level at a given point. Walks out from.
the origin.
Definition at line 32 of file refinementDistanceDataI.H.
References Foam::abort(), Foam::diff(), Foam::FatalError, FatalErrorInFunction, Foam::magSqr(), refinementDistanceData::origin(), Foam::pos(), Foam::sqr(), refinementDistanceData::valid(), and refinementDistanceData::wantedLevel().
Referenced by refinementDistanceData::originLevel(), and refinementDistanceData::wantedLevel().
|
inline |
Check whether origin has been changed at all or.
still contains original (invalid) value.
Definition at line 148 of file refinementDistanceDataI.H.
References refinementDistanceData::sameGeometry().
Referenced by refinementDistanceData::equal(), refinementDistanceData::originLevel(), and refinementDistanceData::wantedLevel().
|
inline |
Check for identical geometrical data. Used for cyclics checking.
Definition at line 157 of file refinementDistanceDataI.H.
References refinementDistanceData::leaveDomain().
Referenced by refinementDistanceData::originLevel(), and refinementDistanceData::valid().
|
inline |
Convert any absolute coordinates into relative to (patch)face.
centre
Definition at line 170 of file refinementDistanceDataI.H.
References refinementDistanceData::transform().
Referenced by refinementDistanceData::originLevel(), and refinementDistanceData::sameGeometry().
|
inline |
Reverse of leaveDomain.
Definition at line 197 of file refinementDistanceDataI.H.
References refinementDistanceData::updateCell().
Referenced by refinementDistanceData::originLevel(), and refinementDistanceData::transform().
Apply rotation matrix to any coordinates.
Definition at line 184 of file refinementDistanceDataI.H.
References refinementDistanceData::enterDomain(), and Foam::transform().
Referenced by refinementDistanceData::leaveDomain(), and refinementDistanceData::originLevel().
|
inline |
Influence of neighbouring face.
Definition at line 213 of file refinementDistanceDataI.H.
References primitiveMesh::cellCentres(), and refinementDistanceData::updateFace().
Referenced by refinementDistanceData::enterDomain(), and refinementDistanceData::originLevel().
|
inline |
Influence of neighbouring cell.
Definition at line 231 of file refinementDistanceDataI.H.
References primitiveMesh::faceCentres().
Referenced by refinementDistanceData::originLevel(), and refinementDistanceData::updateCell().
|
inline |
Influence of different value on same face.
Definition at line 249 of file refinementDistanceDataI.H.
References refinementDistanceData::equal(), and primitiveMesh::faceCentres().
|
inline |
Same (like operator==)
Definition at line 265 of file refinementDistanceDataI.H.
References refinementDistanceData::operator==(), and refinementDistanceData::valid().
Referenced by refinementDistanceData::originLevel(), and refinementDistanceData::updateFace().
|
inline |
Definition at line 291 of file refinementDistanceDataI.H.
Referenced by refinementDistanceData::equal(), and refinementDistanceData::originLevel().
|
inline |
Definition at line 304 of file refinementDistanceDataI.H.
Referenced by refinementDistanceData::originLevel().
|
friend |
Referenced by refinementDistanceData::originLevel().
|
friend |
Referenced by refinementDistanceData::originLevel().