cyclicAMIGAMGInterface Class Reference

GAMG agglomerated cyclic AMI interface. More...

Inheritance diagram for cyclicAMIGAMGInterface:
Collaboration diagram for cyclicAMIGAMGInterface:

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,. More...
 
 cyclicAMIGAMGInterface (const cyclicAMIGAMGInterface &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~cyclicAMIGAMGInterface ()
 Destructor. More...
 
virtual tmp< labelFieldinternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const
 Transfer and return internal field adjacent to the interface. More...
 
virtual label nbrPatchID () const
 Cyclic interface functions. More...
 
virtual bool owner () const
 Does this side own the interface? More...
 
virtual const cyclicAMIGAMGInterfacenbrPatch () const
 Return neighbour patch. More...
 
virtual const PtrList< AMIInterpolation > & AMIs () const
 Return a reference to the AMI interpolators. More...
 
virtual const List< transformer > & AMITransforms () const
 
virtual const transformertransform () const
 Return transformation between the coupled patches. More...
 
virtual void write (Ostream &) const
 Write to stream. More...
 
void operator= (const cyclicAMIGAMGInterface &)=delete
 Disallow default bitwise assignment. 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...
 
 GAMGInterface (const GAMGInterface &)=delete
 Disallow default bitwise copy construction. More...
 
virtual label size () const
 Return size. More...
 
virtual label index () const
 
virtual const lduInterfacePtrsListcoarseInterfaces () const
 
virtual const labelUListfaceCells () const
 Return faceCell addressing. More...
 
virtual const labelListfaceRestrictAddressing () const
 Return (local)face restrict addressing. More...
 
virtual labelListfaceRestrictAddressing ()
 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 >
void interfaceInternalField (const UList< Type > &internalData, List< Type > &) const
 Get the interface internal field of the given field. More...
 
virtual tmp< labelFieldinterfaceInternalField (const labelUList &internalData) const
 Return the values of the given internal data adjacent to. More...
 
void combine (const GAMGInterface &)
 Merge the next level with this level. More...
 
virtual tmp< scalarFieldagglomerateCoeffs (const scalarField &fineCoeffs) const
 Agglomerating the given fine-level coefficients and return. More...
 
void operator= (const GAMGInterface &)=delete
 Disallow default bitwise assignment. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interfaceInternalField (const UList< Type > &iF) const
 
- Public Member Functions inherited from lduInterface
 TypeName ("lduInterface")
 Runtime type information. More...
 
 lduInterface ()
 Construct null. More...
 
 lduInterface (const lduInterface &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~lduInterface ()
 Destructor. More...
 
virtual void initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const
 Initialise transfer of internal field adjacent to the interface. More...
 
void operator= (const lduInterface &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from cyclicAMILduInterface
 TypeName ("cyclicAMILduInterface")
 Runtime type information. More...
 
 cyclicAMILduInterface ()
 Construct null. More...
 
virtual ~cyclicAMILduInterface ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GAMGInterface
static autoPtr< GAMGInterfaceNew (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< GAMGInterfaceNew (const word &coupleType, const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is)
 Return a pointer to a new interface created on freestore given. More...
 
- Protected Attributes inherited from GAMGInterface
const label index_
 My index in coarseInterfaces. More...
 
const lduInterfacePtrsListcoarseInterfaces_
 All interfaces. More...
 
labelList faceCells_
 Face-cell addressing. More...
 
labelList faceRestrictAddressing_
 Face restrict addressing. More...
 

Detailed Description

GAMG agglomerated cyclic AMI interface.

Source files

Definition at line 49 of file cyclicAMIGAMGInterface.H.

Constructor & Destructor Documentation

◆ cyclicAMIGAMGInterface() [1/2]

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 48 of file cyclicAMIGAMGInterface.C.

References HashTableCore::end(), HashTable< T, Key, Hash >::find(), forAll, List< T >::size(), and List< T >::transfer().

Here is the call graph for this function:

◆ cyclicAMIGAMGInterface() [2/2]

Disallow default bitwise copy construction.

◆ ~cyclicAMIGAMGInterface()

~cyclicAMIGAMGInterface ( )
virtual

Destructor.

Definition at line 180 of file cyclicAMIGAMGInterface.C.

References cyclicAMIGAMGInterface::internalFieldTransfer().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "cyclicAMI"  )

Runtime type information.

◆ internalFieldTransfer()

Foam::tmp< Foam::labelField > internalFieldTransfer ( const Pstream::commsTypes  commsType,
const labelUList iF 
) const
virtual

Transfer and return internal field adjacent to the interface.

Implements lduInterface.

Definition at line 187 of file cyclicAMIGAMGInterface.C.

References GAMGInterface::faceCells(), forAll, tmp< T >::ref(), and UList< T >::size().

Referenced by cyclicAMIGAMGInterface::~cyclicAMIGAMGInterface().

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

◆ nbrPatchID()

virtual label nbrPatchID ( ) const
inlinevirtual

Cyclic interface functions.

Return neighbour processor number

Implements cyclicAMILduInterface.

Definition at line 111 of file cyclicAMIGAMGInterface.H.

References cyclicAMILduInterface::nbrPatchID().

Referenced by cyclicAMIGAMGInterface::nbrPatch().

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

◆ owner()

virtual bool owner ( ) const
inlinevirtual

Does this side own the interface?

Implements cyclicAMILduInterface.

Definition at line 117 of file cyclicAMIGAMGInterface.H.

References cyclicAMILduInterface::owner().

Referenced by cyclicAMIGAMGInterfaceField::updateInterfaceMatrix().

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

◆ nbrPatch()

virtual const cyclicAMIGAMGInterface& nbrPatch ( ) const
inlinevirtual

Return neighbour patch.

Implements cyclicAMILduInterface.

Definition at line 123 of file cyclicAMIGAMGInterface.H.

References GAMGInterface::coarseInterfaces_, and cyclicAMIGAMGInterface::nbrPatchID().

Referenced by cyclicAMIGAMGInterfaceField::updateInterfaceMatrix().

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

◆ AMIs()

virtual const PtrList<AMIInterpolation>& AMIs ( ) const
inlinevirtual

Return a reference to the AMI interpolators.

Implements cyclicAMILduInterface.

Definition at line 132 of file cyclicAMIGAMGInterface.H.

Referenced by cyclicAMIGAMGInterfaceField::updateInterfaceMatrix().

Here is the caller graph for this function:

◆ AMITransforms()

virtual const List<transformer>& AMITransforms ( ) const
inlinevirtual

Implements cyclicAMILduInterface.

Definition at line 138 of file cyclicAMIGAMGInterface.H.

Referenced by cyclicAMIGAMGInterfaceField::updateInterfaceMatrix().

Here is the caller graph for this function:

◆ transform()

virtual const transformer& transform ( ) const
inlinevirtual

Return transformation between the coupled patches.

Implements cyclicAMILduInterface.

Definition at line 144 of file cyclicAMIGAMGInterface.H.

References cyclicAMILduInterface::transform().

Referenced by cyclicAMIGAMGInterfaceField::transform().

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

◆ write()

virtual void write ( Ostream ) const
inlinevirtual

Write to stream.

Implements GAMGInterface.

Definition at line 153 of file cyclicAMIGAMGInterface.H.

References NotImplemented, and cyclicAMIGAMGInterface::operator=().

Here is the call graph for this function:

◆ operator=()

void operator= ( const cyclicAMIGAMGInterface )
delete

Disallow default bitwise assignment.

Referenced by cyclicAMIGAMGInterface::write().

Here is the caller graph for this function:

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