Classes | Public Member Functions | List of all members
globalIndexAndTransform Class Reference

Determination and storage of the possible independent transforms introduced by coupledPolyPatches, as well as all of the possible permutations of these transforms generated by the presence of multiple coupledPolyPatches, i.e. more than one cyclic boundary. Note that any given point can be on maximum 3 transforms only (and these transforms have to be perpendicular) More...

Classes

class  less
 

Public Member Functions

 ClassName ("globalIndexAndTransform")
 
 globalIndexAndTransform (const polyMesh &mesh)
 
label encodeTransformIndex (const labelList &permutationIndices) const
 
labelList decodeTransformIndex (const label transformIndex) const
 
label addToTransformIndex (const label transformIndex, const label patchi, const bool isSendingSide=true, const scalar tol=SMALL) const
 
label mergeTransformIndex (const label transformIndex0, const label transformIndex1) const
 
label minimumTransformIndex (const label transformIndex0, const label transformIndex1) const
 
label subtractTransformIndex (const label transformIndex0, const label transformIndex1) const
 
labelPair encode (const label index, const label transformIndex) const
 
labelPair encode (const label proci, const label index, const label transformIndex) const
 
label index (const labelPair &globalIAndTransform) const
 
label processor (const labelPair &globalIAndTransform) const
 
label transformIndex (const labelPair &globalIAndTransform) const
 
label nIndependentTransforms () const
 
const List< vectorTensorTransform > & transforms () const
 
const List< vectorTensorTransform > & transformPermutations () const
 
label nullTransformIndex () const
 
const List< labelPair > & patchTransformSign () const
 
const vectorTensorTransformtransform (label transformIndex) const
 
labelList transformIndicesForPatches (const labelHashSet &patchIs) const
 
pointField transformPatches (const labelHashSet &patchIs, const point &pt) const
 

Detailed Description

Determination and storage of the possible independent transforms introduced by coupledPolyPatches, as well as all of the possible permutations of these transforms generated by the presence of multiple coupledPolyPatches, i.e. more than one cyclic boundary. Note that any given point can be on maximum 3 transforms only (and these transforms have to be perpendicular)

Also provides global index encoding and decoding for entity (i.e. cell) index, processor index and transform index (0 or positive integer) to a labelPair.

Source files

Definition at line 60 of file globalIndexAndTransform.H.

Constructor & Destructor Documentation

◆ globalIndexAndTransform()

globalIndexAndTransform ( const polyMesh mesh)

Member Function Documentation

◆ ClassName()

ClassName ( "globalIndexAndTransform"  )

◆ encodeTransformIndex()

Foam::label encodeTransformIndex ( const labelList permutationIndices) const
inline

Definition at line 70 of file globalIndexAndTransformI.H.

References Foam::abort(), Foam::constant::physicoChemical::b, Foam::FatalError, FatalErrorInFunction, forAll, and Foam::mag().

Here is the call graph for this function:

◆ decodeTransformIndex()

Foam::labelList decodeTransformIndex ( const label  transformIndex) const
inline

Definition at line 106 of file globalIndexAndTransformI.H.

References forAll, and Foam::Zero.

◆ addToTransformIndex()

Foam::label addToTransformIndex ( const label  transformIndex,
const label  patchi,
const bool  isSendingSide = true,
const scalar  tol = SMALL 
) const
inline

◆ mergeTransformIndex()

label mergeTransformIndex ( const label  transformIndex0,
const label  transformIndex1 
) const
inline

◆ minimumTransformIndex()

Foam::label minimumTransformIndex ( const label  transformIndex0,
const label  transformIndex1 
) const
inline

Definition at line 235 of file globalIndexAndTransformI.H.

References forAll.

◆ subtractTransformIndex()

Foam::label subtractTransformIndex ( const label  transformIndex0,
const label  transformIndex1 
) const
inline

Definition at line 279 of file globalIndexAndTransformI.H.

References forAll.

◆ encode() [1/2]

Foam::labelPair encode ( const label  index,
const label  transformIndex 
) const
inline

Definition at line 297 of file globalIndexAndTransformI.H.

◆ encode() [2/2]

Foam::labelPair encode ( const label  proci,
const label  index,
const label  transformIndex 
) const
inline

Definition at line 307 of file globalIndexAndTransformI.H.

References Foam::abort(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::labelMax.

Here is the call graph for this function:

◆ index()

Foam::label index ( const labelPair globalIAndTransform) const
inline

Definition at line 341 of file globalIndexAndTransformI.H.

Referenced by mapDistribute::mapDistribute().

Here is the caller graph for this function:

◆ processor()

Foam::label processor ( const labelPair globalIAndTransform) const
inline

Definition at line 350 of file globalIndexAndTransformI.H.

References Pair::second().

Referenced by mapDistribute::mapDistribute().

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

◆ transformIndex()

Foam::label transformIndex ( const labelPair globalIAndTransform) const
inline

Definition at line 359 of file globalIndexAndTransformI.H.

References Pair::second().

Referenced by mapDistribute::mapDistribute().

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

◆ nIndependentTransforms()

Foam::label nIndependentTransforms ( ) const
inline

Definition at line 367 of file globalIndexAndTransformI.H.

◆ transforms()

const Foam::List< Foam::vectorTensorTransform > & transforms ( ) const
inline

Definition at line 374 of file globalIndexAndTransformI.H.

◆ transformPermutations()

const Foam::List< Foam::vectorTensorTransform > & transformPermutations ( ) const
inline

Definition at line 381 of file globalIndexAndTransformI.H.

Referenced by mapDistribute::mapDistribute().

Here is the caller graph for this function:

◆ nullTransformIndex()

Foam::label nullTransformIndex ( ) const
inline

Definition at line 387 of file globalIndexAndTransformI.H.

Referenced by globalIndexAndTransform::globalIndexAndTransform().

Here is the caller graph for this function:

◆ patchTransformSign()

const Foam::labelPairList & patchTransformSign ( ) const
inline

Definition at line 394 of file globalIndexAndTransformI.H.

◆ transform()

const Foam::vectorTensorTransform & transform ( label  transformIndex) const
inline

Definition at line 401 of file globalIndexAndTransformI.H.

◆ transformIndicesForPatches()

Foam::labelList transformIndicesForPatches ( const labelHashSet patchIs) const
inline

◆ transformPatches()

Foam::pointField transformPatches ( const labelHashSet patchIs,
const point pt 
) const
inline

Definition at line 583 of file globalIndexAndTransformI.H.

References forAll.


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