Loading...
Searching...
No Matches
edgeTopoDistanceData< Type, PrimitivePatchType > Class Template Reference

For use with PatchEdgeFaceWave. Determines topological distance to starting edges. Templated on passive transported data. More...

#include <edgeTopoDistanceData.H>

Public Types

typedef Type dataType

Public Member Functions

 edgeTopoDistanceData ()
 Construct null with invalid (-1) for distance, null constructor.
 edgeTopoDistanceData (const label distance, const Type &data)
 Construct from distance, data.
label distance () const
const Type & data () const
template<class TrackingData>
bool valid (TrackingData &td) const
 Check whether origin has been changed at all or.
template<class TrackingData>
void transform (const polyMesh &mesh, const PrimitivePatchType &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
 Apply rotation matrix.
template<class TrackingData>
bool updateEdge (const polyMesh &mesh, const PrimitivePatchType &patch, const label edgeI, const label facei, const edgeTopoDistanceData< Type, PrimitivePatchType > &faceInfo, const scalar tol, TrackingData &td)
 Influence of face on edge.
template<class TrackingData>
bool updateEdge (const polyMesh &mesh, const PrimitivePatchType &patch, const edgeTopoDistanceData< Type, PrimitivePatchType > &edgeInfo, const bool sameOrientation, const scalar tol, TrackingData &td)
 New information for edge (from e.g. coupled edge).
template<class TrackingData>
bool updateFace (const polyMesh &mesh, const PrimitivePatchType &patch, const label facei, const label edgeI, const edgeTopoDistanceData< Type, PrimitivePatchType > &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on face.
template<class TrackingData>
bool equal (const edgeTopoDistanceData< Type, PrimitivePatchType > &, TrackingData &) const
 Same (like operator==).
bool operator== (const edgeTopoDistanceData< Type, PrimitivePatchType > &) const
bool operator!= (const edgeTopoDistanceData< Type, PrimitivePatchType > &) const

Protected Attributes

label distance_
 Distance.
Type data_
 Starting data.

Friends

Ostreamoperator (Ostream &, const edgeTopoDistanceData< Type, PrimitivePatchType > &)
Istreamoperator>> (Istream &, edgeTopoDistanceData< Type, PrimitivePatchType > &)

Detailed Description

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
class Foam::edgeTopoDistanceData< Type, PrimitivePatchType >

For use with PatchEdgeFaceWave. Determines topological distance to starting edges. Templated on passive transported data.

Source files

Definition at line 72 of file edgeTopoDistanceData.H.

Member Typedef Documentation

◆ dataType

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
typedef Type dataType

Definition at line 91 of file edgeTopoDistanceData.H.

Constructor & Destructor Documentation

◆ edgeTopoDistanceData() [1/2]

template<class Type, class PrimitivePatchType>
edgeTopoDistanceData ( )
inline

Construct null with invalid (-1) for distance, null constructor.

for data

Definition at line 29 of file edgeTopoDistanceDataI.H.

References data_, and distance_.

Referenced by equal(), operator, operator>>, updateEdge(), updateEdge(), and updateFace().

Here is the caller graph for this function:

◆ edgeTopoDistanceData() [2/2]

template<class Type, class PrimitivePatchType>
edgeTopoDistanceData ( const label distance,
const Type & data )
inline

Construct from distance, data.

Definition at line 38 of file edgeTopoDistanceDataI.H.

References data(), data_, distance(), and distance_.

Here is the call graph for this function:

Member Function Documentation

◆ distance()

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
label distance ( ) const
inline

Definition at line 116 of file edgeTopoDistanceData.H.

References distance_.

Referenced by edgeTopoDistanceData().

Here is the caller graph for this function:

◆ data()

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
const Type & data ( ) const
inline

Definition at line 121 of file edgeTopoDistanceData.H.

References data_.

Referenced by edgeTopoDistanceData(), and operator==().

Here is the caller graph for this function:

◆ valid()

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

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 53 of file edgeTopoDistanceDataI.H.

References distance_, and td().

Here is the call graph for this function:

◆ transform()

template<class Type, class PrimitivePatchType>
template<class TrackingData>
void transform ( const polyMesh & mesh,
const PrimitivePatchType & patch,
const tensor & rotTensor,
const scalar tol,
TrackingData & td )
inline

Apply rotation matrix.

Definition at line 64 of file edgeTopoDistanceDataI.H.

References mesh, and td().

Here is the call graph for this function:

◆ updateEdge() [1/2]

template<class Type, class PrimitivePatchType>
template<class TrackingData>
bool updateEdge ( const polyMesh & mesh,
const PrimitivePatchType & patch,
const label edgeI,
const label facei,
const edgeTopoDistanceData< Type, PrimitivePatchType > & faceInfo,
const scalar tol,
TrackingData & td )
inline

Influence of face on edge.

Definition at line 77 of file edgeTopoDistanceDataI.H.

References data_, distance_, edgeTopoDistanceData(), mesh, and td().

Here is the call graph for this function:

◆ updateEdge() [2/2]

template<class Type, class PrimitivePatchType>
template<class TrackingData>
bool updateEdge ( const polyMesh & mesh,
const PrimitivePatchType & patch,
const edgeTopoDistanceData< Type, PrimitivePatchType > & edgeInfo,
const bool sameOrientation,
const scalar tol,
TrackingData & td )
inline

New information for edge (from e.g. coupled edge).

Definition at line 102 of file edgeTopoDistanceDataI.H.

References distance_, edgeTopoDistanceData(), mesh, and td().

Here is the call graph for this function:

◆ updateFace()

template<class Type, class PrimitivePatchType>
template<class TrackingData>
bool updateFace ( const polyMesh & mesh,
const PrimitivePatchType & patch,
const label facei,
const label edgeI,
const edgeTopoDistanceData< Type, PrimitivePatchType > & edgeInfo,
const scalar tol,
TrackingData & td )
inline

Influence of edge on face.

Definition at line 125 of file edgeTopoDistanceDataI.H.

References distance_, edgeTopoDistanceData(), mesh, and td().

Here is the call graph for this function:

◆ equal()

template<class Type, class PrimitivePatchType>
template<class TrackingData>
bool equal ( const edgeTopoDistanceData< Type, PrimitivePatchType > & rhs,
TrackingData & td ) const
inline

Same (like operator==).

Definition at line 149 of file edgeTopoDistanceDataI.H.

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

Here is the call graph for this function:

◆ operator==()

template<class Type, class PrimitivePatchType>
bool operator== ( const edgeTopoDistanceData< Type, PrimitivePatchType > & rhs) const
inline

Definition at line 162 of file edgeTopoDistanceDataI.H.

References data(), Foam::distance(), operator, and Foam::rhs().

Here is the call graph for this function:

◆ operator!=()

template<class Type, class PrimitivePatchType>
bool operator!= ( const edgeTopoDistanceData< Type, PrimitivePatchType > & rhs) const
inline

Definition at line 172 of file edgeTopoDistanceDataI.H.

References operator, and Foam::rhs().

Here is the call graph for this function:

◆ operator

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
Ostream & operator ( Ostream & ,
const edgeTopoDistanceData< Type, PrimitivePatchType > &  )
friend

References edgeTopoDistanceData().

Referenced by operator!=(), and operator==().

◆ operator>>

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
Istream & operator>> ( Istream & ,
edgeTopoDistanceData< Type, PrimitivePatchType > &  )
friend

Member Data Documentation

◆ distance_

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
label distance_
protected

◆ data_

template<class Type, class PrimitivePatchType = indirectPrimitivePatch>
Type data_
protected

Starting data.

Definition at line 86 of file edgeTopoDistanceData.H.

Referenced by data(), edgeTopoDistanceData(), edgeTopoDistanceData(), and updateEdge().


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