GAMG agglomerated cyclic ACMI interface. More...
#include <cyclicACMIGAMGInterface.H>


Public Member Functions | |
| TypeName ("cyclicACMI") | |
| Runtime type information. | |
| cyclicACMIGAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, const lduInterface &fineInterface, const labelField &restrictAddressing, const labelField &neighbourRestrictAddressing, const label fineLevelIndex, const label coarseComm) | |
| Construct from fine level interface, local and neighbour restrict addressing. | |
| cyclicACMIGAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) | |
| Construct from Istream. | |
| cyclicACMIGAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, const lduInterface &fineInterface, const labelList &interfaceMap, const labelUList &faceCells, const labelUList &faceRestrictAddresssing, const labelUList &faceOffsets, const lduInterfacePtrsList &allInterfaces, const label coarseComm, const label myProcNo, const labelList &procAgglomMap) | |
| Construct from fine level interface, local and neighbour restrict addressing. | |
| virtual autoPtr< GAMGInterface > | clone (const label index, const lduInterfacePtrsList &coarseInterfaces, const labelList &interfaceMap, const labelUList &faceCells, const labelUList &faceRestrictAddresssing, const labelUList &faceOffsets, const lduInterfacePtrsList &allInterfaces, const label coarseComm, const label myProcNo, const labelList &procAgglomMap) const |
| Construct by assembling and returning a clone. | |
| virtual | ~cyclicACMIGAMGInterface ()=default |
| Destructor. | |
| virtual tmp< labelField > | internalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
| Transfer and return internal field adjacent to the interface. | |
| virtual label | neighbPatchID () const |
| Cyclic interface functions. | |
| virtual bool | owner () const |
| virtual const cyclicACMIGAMGInterface & | neighbPatch () const |
| Return processor number. | |
| virtual const AMIPatchToPatchInterpolation & | AMI () const |
| virtual const tensorField & | forwardT () const |
| Return face transformation tensor. | |
| virtual const tensorField & | reverseT () const |
| Return neighbour-cell transformation tensor. | |
| virtual label | myProcNo () const |
| -1 or old local rank | |
| virtual void | write (Ostream &) const |
| Write to stream. | |
| Public Member Functions inherited from GAMGInterface | |
| TypeName ("GAMGInterface") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, GAMGInterface, lduInterface,(const label index, const lduInterfacePtrsList &coarseInterfaces, const lduInterface &fineInterface, const labelField &localRestrictAddressing, const labelField &neighbourRestrictAddressing, const label fineLevelIndex, const label coarseComm),(index, coarseInterfaces, fineInterface, localRestrictAddressing, neighbourRestrictAddressing, fineLevelIndex, coarseComm)) | |
| declareRunTimeSelectionTable (autoPtr, GAMGInterface, Istream,(const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is),(index, coarseInterfaces, is)) | |
| GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces) | |
| Construct from interfaces, restrict addressing set later on. | |
| GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, const labelUList &faceCells, const labelUList &faceRestrictAddressing) | |
| Construct from interfaces and restrict addressing. | |
| GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) | |
| Construct from Istream. | |
| virtual label | size () const |
| Return size. | |
| virtual label | index () const |
| virtual const lduInterfacePtrsList & | coarseInterfaces () const |
| virtual const labelUList & | faceCells () const |
| Return faceCell addressing. | |
| virtual const labelList & | faceRestrictAddressing () const |
| Return (local)face restrict addressing. | |
| virtual labelList & | faceRestrictAddressing () |
| Return non-const access to face restrict addressing. | |
| template<class Type> | |
| tmp< Field< Type > > | interfaceInternalField (const UList< Type > &internalData) const |
| Return the interface internal field of the given field. | |
| template<class Type> | |
| tmp< Field< Type > > | interfaceInternalField (const UList< Type > &internalData, const labelUList &faceCells) const |
| Return the interface internal field of the given field using faceCell mapping. | |
| template<class Type> | |
| void | interfaceInternalField (const UList< Type > &internalData, List< Type > &) const |
| Get the interface internal field of the given field. | |
| virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData) const |
| Return the values of the given internal data adjacent to. | |
| virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData, const labelUList &faceCells) const |
| Return the values of the given internal data adjacent to the interface as a field using faceCell mapping. | |
| void | combine (const GAMGInterface &) |
| Merge the next level with this level. | |
| virtual tmp< scalarField > | agglomerateCoeffs (const scalarField &fineCoeffs) const |
| Agglomerating the given fine-level coefficients and return. | |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | interfaceInternalField (const UList< Type > &iF) const |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | interfaceInternalField (const UList< Type > &iF, const labelUList &faceCells) const |
| Public Member Functions inherited from lduInterface | |
| TypeNameNoDebug ("lduInterface") | |
| Runtime type information. | |
| lduInterface () noexcept=default | |
| Default construct. | |
| virtual | ~lduInterface ()=default |
| Destructor. | |
| virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
| Initialise transfer of internal field adjacent to the interface. | |
| virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF, const labelUList &faceCells) const |
| Initialise transfer of internal field adjacent to the interface using faceCells mapping. | |
| Public Member Functions inherited from cyclicACMILduInterface | |
| TypeNameNoDebug ("cyclicACMILduInterface") | |
| Runtime type information. | |
| cyclicACMILduInterface () noexcept=default | |
| Default construct. | |
| virtual | ~cyclicACMILduInterface ()=default |
| Destructor. | |
| Public Member Functions inherited from cyclicAMILduInterface | |
| TypeNameNoDebug ("cyclicAMILduInterface") | |
| Runtime type information. | |
| cyclicAMILduInterface () noexcept=default | |
| Default construct. | |
| virtual | ~cyclicAMILduInterface ()=default |
| Destructor. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from GAMGInterface | |
| static autoPtr< GAMGInterface > | New (const label index, const lduInterfacePtrsList &coarseInterfaces, const lduInterface &fineInterface, const labelField &localRestrictAddressing, const labelField &neighbourRestrictAddressing, const label fineLevelIndex, const label coarseComm) |
| Return a pointer to a new interface created on freestore given. | |
| static autoPtr< GAMGInterface > | New (const word &coupleType, const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) |
| Return a pointer to a new interface created on freestore given. | |
| Protected Member Functions inherited from GAMGInterface | |
| GAMGInterface (const GAMGInterface &)=delete | |
| No copy construct. | |
| void | operator= (const GAMGInterface &)=delete |
| No copy assignment. | |
| Protected Attributes inherited from GAMGInterface | |
| const label | index_ |
| My index in coarseInterfaces. | |
| const lduInterfacePtrsList & | coarseInterfaces_ |
| All interfaces. | |
| labelList | faceCells_ |
| Face-cell addressing. | |
| labelList | faceRestrictAddressing_ |
| Face restrict addressing. | |
GAMG agglomerated cyclic ACMI interface.
Definition at line 48 of file cyclicACMIGAMGInterface.H.
| cyclicACMIGAMGInterface | ( | const label | index, |
| const lduInterfacePtrsList & | coarseInterfaces, | ||
| const lduInterface & | fineInterface, | ||
| const labelField & | restrictAddressing, | ||
| const labelField & | neighbourRestrictAddressing, | ||
| const label | fineLevelIndex, | ||
| const label | coarseComm ) |
Construct from fine level interface, local and neighbour restrict addressing.
Definition at line 49 of file cyclicACMIGAMGInterface.C.
References DynamicList< T, SizeMin >::append(), HashTable< T, Key, Hash >::cfind(), GAMGInterface::coarseInterfaces(), cyclicACMILduInterface::cyclicACMILduInterface(), GAMGInterface::faceCells_, GAMGInterface::faceRestrictAddressing_, forwardT(), GAMGInterface::GAMGInterface(), GAMGInterface::index(), HashTable< T, Key, Hash >::insert(), neighbPatchID(), owner(), Foam::refCast(), reverseT(), HashTable< T, Key, Hash >::size(), UList< T >::size(), and List< T >::transfer().

| cyclicACMIGAMGInterface | ( | const label | index, |
| const lduInterfacePtrsList & | coarseInterfaces, | ||
| Istream & | is ) |
Construct from Istream.
Definition at line 176 of file cyclicACMIGAMGInterface.C.
References AMI(), GAMGInterface::coarseInterfaces(), AMIInterpolation::comm(), GAMGInterface::GAMGInterface(), GAMGInterface::index(), Foam::readBool(), and Foam::readLabel().

| cyclicACMIGAMGInterface | ( | const label | index, |
| const lduInterfacePtrsList & | coarseInterfaces, | ||
| const lduInterface & | fineInterface, | ||
| const labelList & | interfaceMap, | ||
| const labelUList & | faceCells, | ||
| const labelUList & | faceRestrictAddresssing, | ||
| const labelUList & | faceOffsets, | ||
| const lduInterfacePtrsList & | allInterfaces, | ||
| const label | coarseComm, | ||
| const label | myProcNo, | ||
| const labelList & | procAgglomMap ) |
Construct from fine level interface, local and neighbour restrict addressing.
Definition at line 209 of file cyclicACMIGAMGInterface.C.
References AMI(), DynamicList< T, SizeMin >::append(), UPstream::broadcast, autoPtr< T >::clear(), GAMGInterface::coarseInterfaces(), Pstream::combineReduce(), cyclicACMILduInterface::cyclicACMILduInterface(), DebugPout, Foam::endl(), Foam::exit(), GAMGInterface::faceCells(), Foam::FatalError, FatalErrorInFunction, UList< T >::first(), forAll, forwardT(), GAMGInterface::GAMGInterface(), GAMGInterface::index(), Foam::labelMax, Pstream::listGatherValues(), UPstream::msgType(), myProcNo(), UPstream::myProcNo(), neighbPatchID(), owner(), Foam::refCast(), mapDistributeBase::renumberMap(), autoPtr< T >::reset(), Foam::returnReduceOr(), reverseT(), UPtrList< T >::set(), List< T >::setSize(), UList< T >::size(), UPtrList< T >::size(), x, and y.

|
virtualdefault |
Destructor.
| TypeName | ( | "cyclicACMI" | ) |
Runtime type information.
References GAMGInterface::coarseInterfaces(), GAMGInterface::faceCells(), GAMGInterface::index(), and myProcNo().

|
inlinevirtual |
Construct by assembling and returning a clone.
Reimplemented from GAMGInterface.
Definition at line 146 of file cyclicACMIGAMGInterface.H.
References GAMGInterface::coarseInterfaces(), GAMGInterface::faceCells(), GAMGInterface::index(), and myProcNo().

|
virtual |
Transfer and return internal field adjacent to the interface.
Implements lduInterface.
Definition at line 910 of file cyclicACMIGAMGInterface.C.
References GAMGInterface::faceCells(), forAll, neighbPatch(), tmp< T >::New(), and UList< T >::size().

|
inlinevirtual |
Cyclic interface functions.
Return neighbour processor number
Implements cyclicAMILduInterface.
Definition at line 207 of file cyclicACMIGAMGInterface.H.
Referenced by cyclicACMIGAMGInterface(), cyclicACMIGAMGInterface(), and neighbPatch().

|
inlinevirtual |
Implements cyclicAMILduInterface.
Definition at line 212 of file cyclicACMIGAMGInterface.H.
Referenced by cyclicACMIGAMGInterface(), and cyclicACMIGAMGInterface().

|
inlinevirtual |
Return processor number.
Implements cyclicAMILduInterface.
Definition at line 217 of file cyclicACMIGAMGInterface.H.
References GAMGInterface::coarseInterfaces_, and neighbPatchID().
Referenced by internalFieldTransfer().


|
inlinevirtual |
Implements cyclicAMILduInterface.
Definition at line 225 of file cyclicACMIGAMGInterface.H.
Referenced by cyclicACMIGAMGInterface(), cyclicACMIGAMGInterface(), and write().

|
inlinevirtual |
Return face transformation tensor.
Implements cyclicAMILduInterface.
Definition at line 233 of file cyclicACMIGAMGInterface.H.
Referenced by cyclicACMIGAMGInterface(), and cyclicACMIGAMGInterface().

|
inlinevirtual |
Return neighbour-cell transformation tensor.
Implements cyclicAMILduInterface.
Definition at line 241 of file cyclicACMIGAMGInterface.H.
Referenced by cyclicACMIGAMGInterface(), and cyclicACMIGAMGInterface().

|
inlinevirtual |
-1 or old local rank
Definition at line 249 of file cyclicACMIGAMGInterface.H.
Referenced by clone(), cyclicACMIGAMGInterface(), and TypeName().

|
virtual |
Write to stream.
Implements GAMGInterface.
Definition at line 932 of file cyclicACMIGAMGInterface.C.
References AMI(), UPstream::myProcNo(), os(), token::SPACE, and GAMGInterface::write().
