FreeFOAM The Cross-Platform CFD Toolkit
processorGAMGInterface Class Reference

GAMG agglomerated processor interface. More...

#include <OpenFOAM/processorGAMGInterface.H>


Detailed Description

GAMG agglomerated processor interface.

Source files

Definition at line 51 of file processorGAMGInterface.H.

+ Inheritance diagram for processorGAMGInterface:
+ Collaboration diagram for processorGAMGInterface:

List of all members.

Public Member Functions

 TypeName ("processor")
 Runtime type information.
 processorGAMGInterface (const lduInterface &fineInterface, const labelField &restrictAddressing, const labelField &neighbourRestrictAddressing)
 Construct from fine-level interface,.
virtual ~processorGAMGInterface ()
virtual void initTransfer (const Pstream::commsTypes commsType, const unallocLabelList &interfaceData) const
 Initialise interface data transfer.
virtual tmp< labelField > transfer (const Pstream::commsTypes commsType, const unallocLabelList &interfaceData) const
 Transfer and return neighbour field.
virtual void initInternalFieldTransfer (const Pstream::commsTypes commsType, const unallocLabelList &iF) const
 Initialise neighbour field transfer.
virtual tmp< labelField > internalFieldTransfer (const Pstream::commsTypes commsType, const unallocLabelList &iF) const
 Transfer and return internal field adjacent to the interface.
virtual int myProcNo () const
 Processor interface functions.
virtual int neighbProcNo () const
 Return neigbour processor number.
virtual const tensorField & forwardT () const
 Return face transformation tensor.
- Public Member Functions inherited from GAMGInterface
 TypeName ("GAMGInterface")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, GAMGInterface, lduInterface,(const lduInterface &fineInterface, const labelField &localRestrictAddressing, const labelField &neighbourRestrictAddressing),(fineInterface, localRestrictAddressing, neighbourRestrictAddressing))
 GAMGInterface (const lduInterface &, const labelField &, const labelField &)
 Construct from fine-level interface,.
virtual label size () const
 Return size.
virtual const unallocLabelList & faceCells () const
 Return faceCell addressing.
virtual const labelList & faceRestrictAddressing () const
 Return 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.
virtual tmp< labelField > interfaceInternalField (const unallocLabelList &internalData) const
 Return the values of the given internal data adjacent to.
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.
- Public Member Functions inherited from lduInterface
 TypeName ("lduInterface")
 Runtime type information.
 lduInterface ()
 Construct null.
virtual ~lduInterface ()
- Public Member Functions inherited from processorLduInterface
 TypeName ("processorLduInterface")
 Runtime type information.
 processorLduInterface ()
 Construct null.
virtual ~processorLduInterface ()
template<class Type >
void send (const Pstream::commsTypes commsType, const UList< Type > &) const
 Raw send function.
template<class Type >
void receive (const Pstream::commsTypes commsType, UList< Type > &) const
 Raw field receive function.
template<class Type >
tmp< Field< Type > > receive (const Pstream::commsTypes commsType, const label size) const
 Raw field receive function returning field.
template<class Type >
void compressedSend (const Pstream::commsTypes commsType, const UList< Type > &) const
 Raw field send function with data compression.
template<class Type >
void compressedReceive (const Pstream::commsTypes commsType, UList< Type > &) const
 Raw field receive function with data compression.
template<class Type >
tmp< Field< Type > > compressedReceive (const Pstream::commsTypes commsType, const label size) const
 Raw field receive function with data compression returning field.

Additional Inherited Members

- Static Public Member Functions inherited from GAMGInterface
static autoPtr< GAMGInterface > New (const lduInterface &fineInterface, const labelField &localRestrictAddressing, const labelField &neighbourRestrictAddressing)
 Return a pointer to a new interface created on freestore given.
- Protected Attributes inherited from GAMGInterface
labelField faceCells_
 Face-cell addressing.
labelField faceRestrictAddressing_
 Face restrict addressing.

Constructor & Destructor Documentation

processorGAMGInterface ( const lduInterface &  fineInterface,
const labelField &  restrictAddressing,
const labelField &  neighbourRestrictAddressing 
)

Construct from fine-level interface,.

local and neighbour restrict addressing

Definition at line 46 of file processorGAMGInterface.C.

References LList< SLListBase, T >::append(), LList< LListBase, T >::append(), SLListBase::begin(), SLListBase::end(), forAll, HashTable< T, Key, Hash >::insert(), and List< T >::size().

~processorGAMGInterface ( )
virtual

Definition at line 240 of file processorGAMGInterface.C.


Member Function Documentation

TypeName ( "processor"  )

Runtime type information.

void initTransfer ( const Pstream::commsTypes  commsType,
const unallocLabelList &  interfaceData 
) const
virtual

Initialise interface data transfer.

Reimplemented from lduInterface.

Definition at line 247 of file processorGAMGInterface.C.

Foam::tmp< Foam::labelField > transfer ( const Pstream::commsTypes  commsType,
const unallocLabelList &  interfaceData 
) const
virtual

Transfer and return neighbour field.

Implements lduInterface.

Definition at line 257 of file processorGAMGInterface.C.

void initInternalFieldTransfer ( const Pstream::commsTypes  commsType,
const unallocLabelList &  iF 
) const
virtual

Initialise neighbour field transfer.

Reimplemented from lduInterface.

Definition at line 267 of file processorGAMGInterface.C.

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

Transfer and return internal field adjacent to the interface.

Implements lduInterface.

Definition at line 277 of file processorGAMGInterface.C.

virtual int myProcNo ( ) const
inlinevirtual

Processor interface functions.

Return processor number

Implements processorLduInterface.

Definition at line 130 of file processorGAMGInterface.H.

References processorLduInterface::myProcNo().

Referenced by processorGAMGInterfaceField::myProcNo().

virtual int neighbProcNo ( ) const
inlinevirtual

Return neigbour processor number.

Implements processorLduInterface.

Definition at line 136 of file processorGAMGInterface.H.

References processorLduInterface::neighbProcNo().

Referenced by processorGAMGInterfaceField::neighbProcNo().

virtual const tensorField& forwardT ( ) const
inlinevirtual

Return face transformation tensor.

Implements processorLduInterface.

Definition at line 142 of file processorGAMGInterface.H.

References processorLduInterface::forwardT().

Referenced by processorGAMGInterfaceField::forwardT().


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