Loading...
Searching...
No Matches
wallPoints Class Reference

For use with FaceCellWave. Determines topological distance to starting faces. More...

#include <wallPoints.H>

Collaboration diagram for wallPoints:

Classes

class  trackData
 Class used to pass additional data in. More...

Public Member Functions

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

Protected Member Functions

template<class TrackingData>
bool update (const point &pt, const label index1, const wallPoints &w2, const label index2, const scalar tol, TrackingData &td)
 Originating normal.

Protected Attributes

DynamicList< pointorigin_
 Starting points.
DynamicList< scalar > distSqr_
 Distance (squared) from cellcenter to origin.
DynamicList< FixedList< label, 3 > > surface_
 Originating surface,region and topological region.

Friends

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

Detailed Description

For use with FaceCellWave. Determines topological distance to starting faces.

Source files

Definition at line 59 of file wallPoints.H.

Constructor & Destructor Documentation

◆ wallPoints() [1/2]

wallPoints ( )
inline

Default construct.

Definition at line 83 of file wallPointsI.H.

References distSqr_, origin_, and surface_.

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

Here is the caller graph for this function:

◆ wallPoints() [2/2]

wallPoints ( const UList< point > & origin,
const UList< scalar > & distSqr,
const UList< FixedList< label, 3 > > & surface )
inline

Construct from count.

Definition at line 92 of file wallPointsI.H.

References distSqr(), distSqr_, origin(), origin_, surface(), and surface_.

Here is the call graph for this function:

Member Function Documentation

◆ update()

template<class TrackingData>
bool update ( const point & pt,
const label index1,
const wallPoints & w2,
const label index2,
const scalar tol,
TrackingData & td )
inlineprotected

Originating normal.

DynamicList<vector> normal_;

Evaluate distance to point.

Update distSqr, origin from whomever is nearer pt.

Returns
true if w2 is closer to point, false otherwise.

Definition at line 27 of file wallPointsI.H.

References Foam::diff(), distSqr_, Foam::magSqr(), origin_, surface_, td(), valid(), w2, and wallPoints().

Here is the call graph for this function:

◆ origin()

const List< point > & origin ( ) const
inline

Definition at line 164 of file wallPoints.H.

References origin_.

Referenced by wallPoints().

Here is the caller graph for this function:

◆ distSqr()

const List< scalar > & distSqr ( ) const
inline

Definition at line 168 of file wallPoints.H.

References distSqr_.

Referenced by wallPoints().

Here is the caller graph for this function:

◆ surface()

const List< FixedList< label, 3 > > & surface ( ) const
inline

Definition at line 173 of file wallPoints.H.

References surface_.

Referenced by wallPoints().

Here is the caller graph for this function:

◆ valid()

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

Changed or contains original (invalid) value.

Definition at line 110 of file wallPointsI.H.

References origin_, and td().

Referenced by interpolate(), and update().

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

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

Definition at line 118 of file wallPointsI.H.

References wallPoints().

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

centre

Definition at line 132 of file wallPointsI.H.

References origin_.

◆ 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 166 of file wallPointsI.H.

References origin_.

◆ transform()

template<class TrackingData>
void transform ( const polyMesh & ,
const tensor & rotTensor,
TrackingData & td )
inline

Apply rotation matrix to any coordinates.

Definition at line 150 of file wallPointsI.H.

References origin_, and Foam::transform().

Here is the call graph for this function:

◆ updateCell()

template<class TrackingData>
bool updateCell ( const polyMesh & mesh,
const label thisCelli,
const label neighbourFacei,
const wallPoints & neighbourInfo,
const scalar tol,
TrackingData & td )
inline

Influence of neighbouring face.

Definition at line 185 of file wallPointsI.H.

References distSqr_, forAll, Foam::labelMax, Foam::magSqr(), mesh, origin_, Foam::sqr(), surface_, td(), update(), and wallPoints().

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

Influence of neighbouring cell.

Definition at line 267 of file wallPointsI.H.

References distSqr_, forAll, Foam::labelMax, Foam::magSqr(), mesh, origin_, Foam::sqr(), surface_, td(), update(), and wallPoints().

Here is the call graph for this function:

◆ updateFace() [2/2]

template<class TrackingData>
bool updateFace ( const polyMesh & mesh,
const label thisFacei,
const wallPoints & neighbourInfo,
const scalar tol,
TrackingData & td )
inline

Influence of different value on same face.

Definition at line 349 of file wallPointsI.H.

References distSqr_, forAll, Foam::labelMax, Foam::magSqr(), mesh, origin_, Foam::sqr(), surface_, td(), update(), and wallPoints().

Here is the call graph for this function:

◆ equal()

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

Test for equality, with TrackingData.

Definition at line 429 of file wallPointsI.H.

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

Here is the call graph for this function:

◆ interpolate()

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

References td(), valid(), and wallPoints().

Here is the call graph for this function:

◆ operator==()

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

Test for equality.

Definition at line 476 of file wallPointsI.H.

References distSqr_, origin_, Foam::rhs(), surface_, and wallPoints().

Here is the call graph for this function:

◆ operator!=()

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

Test for inequality.

Definition at line 489 of file wallPointsI.H.

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

Here is the call graph for this function:

◆ operator<<

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

References wallPoints().

◆ operator>>

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

References wallPoints().

Member Data Documentation

◆ origin_

DynamicList<point> origin_
protected

◆ distSqr_

DynamicList<scalar> distSqr_
protected

Distance (squared) from cellcenter to origin.

Definition at line 104 of file wallPoints.H.

Referenced by distSqr(), operator==(), update(), updateCell(), updateFace(), updateFace(), wallPoints(), and wallPoints().

◆ surface_

DynamicList<FixedList<label, 3> > surface_
protected

Originating surface,region and topological region.

Definition at line 109 of file wallPoints.H.

Referenced by operator==(), surface(), update(), updateCell(), updateFace(), updateFace(), wallPoints(), and wallPoints().


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