39 #ifndef GAMGInterface_H 40 #define GAMGInterface_H 103 const labelField& neighbourRestrictAddressing,
104 const label fineLevelIndex,
105 const label coarseComm
111 localRestrictAddressing,
112 neighbourRestrictAddressing,
146 const labelField& neighbourRestrictAddressing,
147 const label fineLevelIndex,
148 const label coarseComm
155 const word& coupleType,
206 virtual label
size()
const 211 virtual label
index()
const virtual label size() const
Return size.
tmp< Field< Type > > interfaceInternalField(const UList< Type > &internalData) const
Return the interface internal field of the given field.
void size(const label n)
Older name for setAddressableSize.
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.
virtual label index() const
virtual const labelUList & faceCells() const
Return faceCell addressing.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
labelList faceRestrictAddressing_
Face restrict addressing.
Smooth ATC in cells next to a set of patches supplied by type.
const lduInterfacePtrsList & coarseInterfaces_
All interfaces.
UList< label > labelUList
A UList of labels.
GAMGInterface(const GAMGInterface &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
UPtrList< const lduInterface > lduInterfacePtrsList
Store lists of lduInterface as a UPtrList.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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))
void operator=(const GAMGInterface &)=delete
No copy assignment.
const label index_
My index in coarseInterfaces.
virtual tmp< scalarField > agglomerateCoeffs(const scalarField &fineCoeffs) const
Agglomerating the given fine-level coefficients and return.
Abstract base class for GAMG agglomerated interfaces.
void combine(const GAMGInterface &)
Merge the next level with this level.
virtual const lduInterfacePtrsList & coarseInterfaces() const
virtual void write(Ostream &) const =0
Write to stream.
TypeName("GAMGInterface")
Runtime type information.
An abstract base class for implicitly-coupled interfaces e.g. processor and cyclic patches...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual const labelList & faceRestrictAddressing() const
Return (local)face restrict addressing.
labelList faceCells_
Face-cell addressing.
List< label > labelList
A List of labels.
A class for managing temporary objects.