OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

GAMGInterface Class Reference

Abstract base class for GAMG agglomerated interfaces. More...

Inheritance diagram for GAMGInterface:
Collaboration diagram for GAMGInterface:

List of all members.


Public Member Functions

 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.

Static Public Member Functions

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

labelField faceCells_
 Face-cell addressing.
labelField faceRestrictAddressing_
 Face restrict addressing.

Detailed Description

Abstract base class for GAMG agglomerated interfaces.

Source files

Definition at line 46 of file GAMGInterface.H.


Constructor & Destructor Documentation

GAMGInterface ( const lduInterface &  ,
const labelField &  ,
const labelField &   
) [inline]

Construct from fine-level interface,.

local and neighbour restrict addressing

Definition at line 120 of file GAMGInterface.H.


Member Function Documentation

TypeName ( "GAMGInterface"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
GAMGInterface  ,
lduInterface  ,
(const lduInterface &fineInterface, const labelField &localRestrictAddressing, const labelField &neighbourRestrictAddressing)  ,
(fineInterface, localRestrictAddressing, neighbourRestrictAddressing)   
)

Foam::autoPtr< Foam::GAMGInterface > New ( const lduInterface &  fineInterface,
const labelField &  localRestrictAddressing,
const labelField &  neighbourRestrictAddressing 
) [static]

Return a pointer to a new interface created on freestore given.

the fine interface

Definition at line 25 of file newGAMGInterface.C.

References Foam::exit(), Foam::FatalError, and FatalErrorIn.

Referenced by GAMGAgglomeration::agglomerateLduAddressing().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual label size (  )  const [inline, virtual]

virtual const unallocLabelList& faceCells (  )  const [inline, virtual]

Return faceCell addressing.

Implements lduInterface.

Definition at line 139 of file GAMGInterface.H.

References GAMGInterface::faceCells_.

virtual const labelList& faceRestrictAddressing (  )  const [inline, virtual]

Return face restrict addressing.

Definition at line 145 of file GAMGInterface.H.

References GAMGInterface::faceRestrictAddressing_.

virtual labelList& faceRestrictAddressing (  )  [inline, virtual]

Return non-const access to face restrict addressing.

Definition at line 151 of file GAMGInterface.H.

References GAMGInterface::faceRestrictAddressing_.

Foam::tmp< Foam::Field< Type > > interfaceInternalField ( const UList< Type > &  internalData  )  const [inline]

Return the interface internal field of the given field.

Definition at line 24 of file GAMGInterfaceTemplates.C.

References GAMGInterface::faceCells_, forAll, and GAMGInterface::size().

Referenced by processorGAMGInterface::internalFieldTransfer().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::labelField > interfaceInternalField ( const unallocLabelList &  internalData  )  const [virtual]

Return the values of the given internal data adjacent to.

the interface as a field

Implements lduInterface.

Definition at line 45 of file GAMGInterface.C.

References GAMGInterface::faceRestrictAddressing_.

void combine ( const GAMGInterface &  coarseGi  ) 

Merge the next level with this level.

combining the face-restrict addressing and copying the face-cell addressing

Definition at line 31 of file GAMGInterface.C.

References Foam::defineRunTimeSelectionTable(), and Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

Foam::tmp< Foam::scalarField > agglomerateCoeffs ( const scalarField &  fineCoeffs  )  const [virtual]

Agglomerating the given fine-level coefficients and return.

Definition at line 54 of file GAMGInterface.C.


Member Data Documentation

labelField faceCells_ [protected]

Face-cell addressing.

Definition at line 56 of file GAMGInterface.H.

Referenced by GAMGInterface::faceCells(), GAMGInterface::interfaceInternalField(), and GAMGInterface::size().

Face restrict addressing.

Definition at line 59 of file GAMGInterface.H.

Referenced by GAMGInterface::faceRestrictAddressing(), and GAMGInterface::interfaceInternalField().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd