OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

refinementDistanceData Class Reference

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

Collaboration diagram for refinementDistanceData:

List of all members.


Public Member Functions

 refinementDistanceData ()
 Construct null.
 refinementDistanceData (const scalar level0Size, const point &origin, const label level)
 Construct from count.
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.
bool valid () const
 Check whether origin has been changed at all or.
bool sameGeometry (const polyMesh &, const refinementDistanceData &, const scalar) const
 Check for identical geometrical data. Used for cyclics checking.
void leaveDomain (const polyMesh &, const polyPatch &, const label patchFaceI, const point &faceCentre)
 Convert any absolute coordinates into relative to (patch)face.
void enterDomain (const polyMesh &, const polyPatch &, const label patchFaceI, const point &faceCentre)
 Reverse of leaveDomain.
void transform (const polyMesh &, const tensor &)
 Apply rotation matrix to any coordinates.
bool updateCell (const polyMesh &, const label thisCellI, const label neighbourFaceI, const refinementDistanceData &neighbourInfo, const scalar tol)
 Influence of neighbouring face.
bool updateFace (const polyMesh &, const label thisFaceI, const label neighbourCellI, const refinementDistanceData &neighbourInfo, const scalar tol)
 Influence of neighbouring cell.
bool updateFace (const polyMesh &, const label thisFaceI, const refinementDistanceData &neighbourInfo, const scalar tol)
 Influence of different value on same face.
bool operator== (const refinementDistanceData &) const
bool operator!= (const refinementDistanceData &) const

Friends

Ostream & operator<< (Ostream &, const refinementDistanceData &)
Istream & operator>> (Istream &, refinementDistanceData &)

Detailed Description

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

Source files

Definition at line 50 of file refinementDistanceData.H.


Constructor & Destructor Documentation

refinementDistanceData (  )  [inline]

Construct null.

Definition at line 115 of file refinementDistanceDataI.H.

refinementDistanceData ( const scalar  level0Size,
const point &  origin,
const label  level 
) [inline]

Construct from count.

Definition at line 123 of file refinementDistanceDataI.H.


Member Function Documentation

scalar level0Size (  )  const [inline]

Definition at line 93 of file refinementDistanceData.H.

scalar& level0Size (  )  [inline]

Definition at line 98 of file refinementDistanceData.H.

const point& origin (  )  const [inline]

Definition at line 103 of file refinementDistanceData.H.

point& origin (  )  [inline]

Definition at line 108 of file refinementDistanceData.H.

label originLevel (  )  const [inline]

Definition at line 113 of file refinementDistanceData.H.

label& originLevel (  )  [inline]

Definition at line 118 of file refinementDistanceData.H.

Foam::label wantedLevel ( const point &  pt  )  const [inline]

Calculates the wanted level at a given point. Walks out from.

the origin.

Definition at line 24 of file refinementDistanceDataI.H.

References Foam::magSqr(), and Foam::sqr().

Here is the call graph for this function:

bool valid (  )  const [inline]

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 137 of file refinementDistanceDataI.H.

bool sameGeometry ( const polyMesh &  ,
const refinementDistanceData &  ,
const   scalar 
) const [inline]

Check for identical geometrical data. Used for cyclics checking.

Definition at line 145 of file refinementDistanceDataI.H.

void leaveDomain ( const polyMesh &  ,
const polyPatch &  patch,
const label  patchFaceI,
const point &  faceCentre 
) [inline]

Convert any absolute coordinates into relative to (patch)face.

centre

Definition at line 156 of file refinementDistanceDataI.H.

void enterDomain ( const polyMesh &  ,
const polyPatch &  patch,
const label  patchFaceI,
const point &  faceCentre 
) [inline]

Reverse of leaveDomain.

Definition at line 179 of file refinementDistanceDataI.H.

References refinementDistanceData::transform().

Here is the call graph for this function:

void transform ( const polyMesh &  ,
const tensor &  rotTensor 
) [inline]

Apply rotation matrix to any coordinates.

Definition at line 168 of file refinementDistanceDataI.H.

Referenced by refinementDistanceData::enterDomain().

Here is the caller graph for this function:

bool updateCell ( const polyMesh &  mesh,
const label  thisCellI,
const label  neighbourFaceI,
const refinementDistanceData &  neighbourInfo,
const scalar  tol 
) [inline]

Influence of neighbouring face.

Definition at line 193 of file refinementDistanceDataI.H.

bool updateFace ( const polyMesh &  mesh,
const label  thisFaceI,
const label  neighbourCellI,
const refinementDistanceData &  neighbourInfo,
const scalar  tol 
) [inline]

Influence of neighbouring cell.

Definition at line 209 of file refinementDistanceDataI.H.

References primitiveMesh::cellCentres().

Here is the call graph for this function:

bool updateFace ( const polyMesh &  mesh,
const label  thisFaceI,
const refinementDistanceData &  neighbourInfo,
const scalar  tol 
) [inline]

Influence of different value on same face.

Definition at line 225 of file refinementDistanceDataI.H.

References primitiveMesh::faceCentres().

Here is the call graph for this function:

bool operator== ( const refinementDistanceData &  rhs  )  const [inline]

Definition at line 241 of file refinementDistanceDataI.H.

bool operator!= ( const refinementDistanceData &  rhs  )  const [inline]

Definition at line 268 of file refinementDistanceDataI.H.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const refinementDistanceData &   
) [friend]

Istream& operator>> ( Istream &  ,
refinementDistanceData &   
) [friend]


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd