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 vectorTensorTransform & | transform (label transformIndex) const |
labelList | transformIndicesForPatches (const labelHashSet &patchIs) const |
pointField | transformPatches (const labelHashSet &patchIs, const point &pt) const |
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.
Definition at line 60 of file globalIndexAndTransform.H.
globalIndexAndTransform | ( | const polyMesh & | mesh | ) |
Definition at line 449 of file globalIndexAndTransform.C.
References List::append(), polyMesh::boundaryMesh(), mapDistributeBase::constructSize(), globalMeshData::coupledPatch(), Foam::expressions::patchExpr::debug, mapDistribute::distribute(), Foam::endl(), forAll, globalMeshData::globalCoPointSlaves(), globalMeshData::globalCoPointSlavesMap(), polyMesh::globalData(), vectorTensorTransform::hasR(), Foam::Info, PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::constant::atomic::mp, primitiveMesh::nPoints(), globalIndexAndTransform::nullTransformIndex(), patches, polyMesh::points(), vectorTensorTransform::R(), and vectorTensorTransform::t().
ClassName | ( | "globalIndexAndTransform" | ) |
|
inline |
Definition at line 70 of file globalIndexAndTransformI.H.
References Foam::abort(), Foam::constant::physicoChemical::b, Foam::FatalError, FatalErrorInFunction, forAll, and Foam::mag().
|
inline |
Definition at line 106 of file globalIndexAndTransformI.H.
References forAll, and Foam::Zero.
|
inline |
Definition at line 124 of file globalIndexAndTransformI.H.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, vectorTensorTransform::hasR(), Foam::labelMin, Foam::mag(), IOstream::name(), vectorTensorTransform::R(), R, Pair::second(), Foam::sign(), vectorTensorTransform::t(), and Foam::tr().
|
inline |
|
inline |
Definition at line 235 of file globalIndexAndTransformI.H.
References forAll.
|
inline |
Definition at line 279 of file globalIndexAndTransformI.H.
References forAll.
|
inline |
Definition at line 297 of file globalIndexAndTransformI.H.
|
inline |
Definition at line 307 of file globalIndexAndTransformI.H.
References Foam::abort(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::labelMax.
|
inline |
Definition at line 341 of file globalIndexAndTransformI.H.
Referenced by mapDistribute::mapDistribute().
|
inline |
Definition at line 350 of file globalIndexAndTransformI.H.
References Pair::second().
Referenced by mapDistribute::mapDistribute().
|
inline |
Definition at line 359 of file globalIndexAndTransformI.H.
References Pair::second().
Referenced by mapDistribute::mapDistribute().
|
inline |
Definition at line 367 of file globalIndexAndTransformI.H.
|
inline |
Definition at line 374 of file globalIndexAndTransformI.H.
|
inline |
Definition at line 381 of file globalIndexAndTransformI.H.
Referenced by mapDistribute::mapDistribute().
|
inline |
Definition at line 387 of file globalIndexAndTransformI.H.
Referenced by globalIndexAndTransform::globalIndexAndTransform().
|
inline |
Definition at line 394 of file globalIndexAndTransformI.H.
|
inline |
Definition at line 401 of file globalIndexAndTransformI.H.
|
inline |
Definition at line 410 of file globalIndexAndTransformI.H.
References Foam::constant::physicoChemical::b, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::pow(), Pair::second(), List::setSize(), Foam::sign(), Foam::sum(), and Foam::Zero.
|
inline |
Definition at line 583 of file globalIndexAndTransformI.H.
References forAll.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.