GAMG agglomerated cyclic AMI interface. More...


Public Member Functions | |
| TypeName ("cyclicAMI") | |
| Runtime type information. More... | |
| cyclicAMIGAMGInterface (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. More... | |
| cyclicAMIGAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) | |
| Construct from Istream. More... | |
| cyclicAMIGAMGInterface (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. More... | |
| 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. More... | |
| virtual | ~cyclicAMIGAMGInterface ()=default |
| Destructor. More... | |
| virtual tmp< labelField > | internalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
| Transfer and return internal field adjacent to the interface. More... | |
| virtual label | neighbPatchID () const |
| Cyclic interface functions. More... | |
| virtual bool | owner () const |
| virtual const cyclicAMIGAMGInterface & | neighbPatch () const |
| Return processor number. More... | |
| virtual const AMIPatchToPatchInterpolation & | AMI () const |
| virtual const tensorField & | forwardT () const |
| Return face transformation tensor. More... | |
| virtual const tensorField & | reverseT () const |
| Return neighbour-cell transformation tensor. More... | |
| virtual label | myProcNo () const |
| -1 or old local rank More... | |
| virtual void | write (Ostream &) const |
| Write to stream. More... | |
Public Member Functions inherited from GAMGInterface | |
| TypeName ("GAMGInterface") | |
| Runtime type information. More... | |
| 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. More... | |
| GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, const labelUList &faceCells, const labelUList &faceRestrictAddressing) | |
| Construct from interfaces and restrict addressing. More... | |
| GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) | |
| Construct from Istream. More... | |
| virtual label | size () const |
| Return size. More... | |
| virtual label | index () const |
| virtual const lduInterfacePtrsList & | coarseInterfaces () const |
| virtual const labelUList & | faceCells () const |
| Return faceCell addressing. More... | |
| virtual const labelList & | faceRestrictAddressing () const |
| Return (local)face restrict addressing. More... | |
| virtual labelList & | faceRestrictAddressing () |
| Return non-const access to face restrict addressing. More... | |
| template<class Type > | |
| tmp< Field< Type > > | interfaceInternalField (const UList< Type > &internalData) const |
| Return the interface internal field of the given field. More... | |
| 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. More... | |
| template<class Type > | |
| void | interfaceInternalField (const UList< Type > &internalData, List< Type > &) const |
| Get the interface internal field of the given field. More... | |
| virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData) const |
| Return the values of the given internal data adjacent to. More... | |
| 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. More... | |
| void | combine (const GAMGInterface &) |
| Merge the next level with this level. More... | |
| virtual tmp< scalarField > | agglomerateCoeffs (const scalarField &fineCoeffs) const |
| Agglomerating the given fine-level coefficients and return. More... | |
| 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. More... | |
| lduInterface () noexcept=default | |
| Default construct. More... | |
| virtual | ~lduInterface ()=default |
| Destructor. More... | |
| virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
| Initialise transfer of internal field adjacent to the interface. More... | |
| 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. More... | |
Public Member Functions inherited from cyclicAMILduInterface | |
| TypeNameNoDebug ("cyclicAMILduInterface") | |
| Runtime type information. More... | |
| cyclicAMILduInterface () noexcept=default | |
| Default construct. More... | |
| virtual | ~cyclicAMILduInterface ()=default |
| Destructor. More... | |
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. More... | |
| 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. More... | |
Protected Member Functions inherited from GAMGInterface | |
| GAMGInterface (const GAMGInterface &)=delete | |
| No copy construct. More... | |
| void | operator= (const GAMGInterface &)=delete |
| No copy assignment. More... | |
Protected Attributes inherited from GAMGInterface | |
| const label | index_ |
| My index in coarseInterfaces. More... | |
| const lduInterfacePtrsList & | coarseInterfaces_ |
| All interfaces. More... | |
| labelList | faceCells_ |
| Face-cell addressing. More... | |
| labelList | faceRestrictAddressing_ |
| Face restrict addressing. More... | |
GAMG agglomerated cyclic AMI interface.
Definition at line 48 of file cyclicAMIGAMGInterface.H.
| cyclicAMIGAMGInterface | ( | 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 50 of file cyclicAMIGAMGInterface.C.
References HashTable< T, Key, Hash >::cfind(), Foam::ensightOutput::debug, Foam::endl(), lduInterface::faceCells(), Foam::flatOutput(), forAll, Foam::identity(), Foam::Pout, UList< T >::size(), and List< T >::transfer().

| cyclicAMIGAMGInterface | ( | const label | index, |
| const lduInterfacePtrsList & | coarseInterfaces, | ||
| Istream & | is | ||
| ) |
Construct from Istream.
Definition at line 301 of file cyclicAMIGAMGInterface.C.
References Foam::readBool().

| cyclicAMIGAMGInterface | ( | 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 334 of file cyclicAMIGAMGInterface.C.
References DynamicList< T, SizeMin >::append(), Foam::HashSetOps::bools(), Foam::PstreamDetail::broadcast(), autoPtr< T >::clear(), Foam::combineReduce(), Foam::ensightOutput::debug, DebugPout, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, UList< T >::first(), Foam::flatOutput(), forAll, Foam::identity(), Foam::labelMax, Foam::Pout, autoPtr< T >::reset(), Foam::returnReduceOr(), UPtrList< T >::set(), List< T >::setSize(), UList< T >::size(), UPtrList< T >::size(), x, and y.

|
virtualdefault |
Destructor.
| TypeName | ( | "cyclicAMI" | ) |
Runtime type information.
|
inlinevirtual |
Construct by assembling and returning a clone.
Reimplemented from GAMGInterface.
Definition at line 147 of file cyclicAMIGAMGInterface.H.
References GAMGInterface::coarseInterfaces(), GAMGInterface::index(), and cyclicAMIGAMGInterface::myProcNo().

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

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

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

|
inlinevirtual |
Implements cyclicAMILduInterface.
Definition at line 225 of file cyclicAMIGAMGInterface.H.
Referenced by cyclicAMIGAMGInterface::write().

|
inlinevirtual |
Return face transformation tensor.
Implements cyclicAMILduInterface.
Definition at line 233 of file cyclicAMIGAMGInterface.H.
Referenced by cyclicAMIGAMGInterfaceField::forwardT().

|
inlinevirtual |
Return neighbour-cell transformation tensor.
Implements cyclicAMILduInterface.
Definition at line 241 of file cyclicAMIGAMGInterface.H.
Referenced by cyclicAMIGAMGInterfaceField::reverseT().

|
inlinevirtual |
-1 or old local rank
Definition at line 249 of file cyclicAMIGAMGInterface.H.
Referenced by cyclicAMIGAMGInterface::clone().

|
virtual |
Write to stream.
Implements GAMGInterface.
Definition at line 1158 of file cyclicAMIGAMGInterface.C.
References cyclicAMIGAMGInterface::AMI(), AMIInterpolation::comm(), UPstream::myProcNo(), os(), token::SPACE, GAMGInterface::write(), and AMIInterpolation::writeData().
