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,
210 const label coarseComm,
211 const label myProcNo,
226 virtual label
size()
const
231 virtual label
index()
const
virtual label size() const
Return size.
GAMGInterface(const label index, const lduInterfacePtrsList &coarseInterfaces)
Construct from interfaces, restrict addressing set later on.
virtual const labelList & faceRestrictAddressing() const
Return (local)face restrict addressing.
virtual labelList & faceRestrictAddressing()
Return non-const access to face restrict addressing.
labelList faceRestrictAddressing_
Face restrict addressing.
GAMGInterface(const label index, const lduInterfacePtrsList &coarseInterfaces, const labelUList &faceCells, const labelUList &faceRestrictAddressing)
Construct from interfaces and restrict addressing.
virtual label index() const
tmp< Field< Type > > interfaceInternalField(const UList< Type > &internalData, const labelUList &faceCells) const
Return the interface internal field of the given field using faceCell mapping.
virtual const lduInterfacePtrsList & coarseInterfaces() const
void operator=(const GAMGInterface &)=delete
No copy assignment.
virtual const labelUList & faceCells() const
Return faceCell addressing.
virtual tmp< scalarField > agglomerateCoeffs(const scalarField &fineCoeffs) const
Agglomerating the given fine-level coefficients and return.
const lduInterfacePtrsList & coarseInterfaces_
All interfaces.
void combine(const GAMGInterface &)
Merge the next level with this level.
tmp< Field< Type > > interfaceInternalField(const UList< Type > &internalData) const
Return the interface internal field of the given field.
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 return a clone.
TypeName("GAMGInterface")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, GAMGInterface, Istream,(const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is),(index, coarseInterfaces, is))
labelList faceCells_
Face-cell addressing.
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.
const label index_
My index in coarseInterfaces.
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))
GAMGInterface(const GAMGInterface &)=delete
No copy construct.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Smooth ATC in cells next to a set of patches supplied by type.
lduInterface() noexcept=default
Default construct.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
List< label > labelList
A List of labels.
UPtrList< const lduInterface > lduInterfacePtrsList
Store lists of lduInterface as a UPtrList.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< label > labelField
Specialisation of Field<T> for label.
UList< label > labelUList
A UList of labels.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.