Abstract base class for GAMG agglomerated interfaces. More...
Public Member Functions | |
TypeName ("GAMGInterface") | |
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) | |
GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, const labelUList &faceCells, const labelUList &faceRestrictAddressing) | |
GAMGInterface (const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) | |
virtual label | size () const |
virtual label | index () const |
virtual const lduInterfacePtrsList & | coarseInterfaces () const |
virtual const labelUList & | faceCells () const |
virtual const labelList & | faceRestrictAddressing () const |
virtual labelList & | faceRestrictAddressing () |
template<class Type > | |
tmp< Field< Type > > | interfaceInternalField (const UList< Type > &internalData) const |
template<class Type > | |
tmp< Field< Type > > | interfaceInternalField (const UList< Type > &internalData, const labelUList &faceCells) const |
template<class Type > | |
void | interfaceInternalField (const UList< Type > &internalData, List< Type > &) const |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData) const |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData, const labelUList &faceCells) const |
void | combine (const GAMGInterface &) |
virtual tmp< scalarField > | agglomerateCoeffs (const scalarField &fineCoeffs) const |
virtual void | write (Ostream &) const =0 |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interfaceInternalField (const UList< Type > &iF) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interfaceInternalField (const UList< Type > &iF, const labelUList &faceCells) const |
![]() | |
TypeName ("lduInterface") | |
lduInterface ()=default | |
virtual | ~lduInterface ()=default |
virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF, const labelUList &faceCells) const |
virtual tmp< labelField > | internalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const =0 |
Static Public Member Functions | |
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) |
static autoPtr< GAMGInterface > | New (const word &coupleType, const label index, const lduInterfacePtrsList &coarseInterfaces, Istream &is) |
Protected Member Functions | |
GAMGInterface (const GAMGInterface &)=delete | |
void | operator= (const GAMGInterface &)=delete |
Protected Attributes | |
const label | index_ |
const lduInterfacePtrsList & | coarseInterfaces_ |
labelList | faceCells_ |
labelList | faceRestrictAddressing_ |
Abstract base class for GAMG agglomerated interfaces.
Definition at line 50 of file GAMGInterface.H.
|
protecteddelete |
|
inline |
Definition at line 161 of file GAMGInterface.H.
|
inline |
Definition at line 173 of file GAMGInterface.H.
GAMGInterface | ( | const label | index, |
const lduInterfacePtrsList & | coarseInterfaces, | ||
Istream & | is | ||
) |
Definition at line 37 of file GAMGInterface.C.
|
protecteddelete |
TypeName | ( | "GAMGInterface" | ) |
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) | |||
) |
|
static |
Definition at line 30 of file GAMGInterfaceNew.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInLookup.
Referenced by lduPrimitiveMesh::gather().
|
static |
Definition at line 71 of file GAMGInterfaceNew.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInLookup.
|
inlinevirtual |
Definition at line 201 of file GAMGInterface.H.
References GAMGInterface::faceCells_.
Referenced by cyclicGAMGInterfaceField::size(), cyclicAMIGAMGInterfaceField::size(), cyclicACMIGAMGInterfaceField::size(), calculatedProcessorGAMGInterfaceField::size(), and processorGAMGInterfaceField::size().
|
inlinevirtual |
Definition at line 206 of file GAMGInterface.H.
References GAMGInterface::index_.
|
inlinevirtual |
Definition at line 211 of file GAMGInterface.H.
References GAMGInterface::coarseInterfaces_.
|
inlinevirtual |
Implements lduInterface.
Definition at line 217 of file GAMGInterface.H.
References GAMGInterface::faceCells_.
Referenced by cyclicACMIGAMGInterface::internalFieldTransfer(), cyclicAMIGAMGInterface::internalFieldTransfer(), and cyclicGAMGInterface::internalFieldTransfer().
|
inlinevirtual |
Definition at line 223 of file GAMGInterface.H.
References GAMGInterface::faceRestrictAddressing_.
|
inlinevirtual |
Definition at line 229 of file GAMGInterface.H.
References GAMGInterface::faceRestrictAddressing_.
tmp<Field<Type> > interfaceInternalField | ( | const UList< Type > & | internalData, |
const labelUList & | faceCells | ||
) | const |
Definition at line 58 of file GAMGInterfaceTemplates.C.
References forAll, and List::resize().
|
virtual |
Implements lduInterface.
Definition at line 66 of file GAMGInterface.C.
|
virtual |
Implements lduInterface.
Definition at line 75 of file GAMGInterface.C.
void combine | ( | const GAMGInterface & | coarseGi | ) |
Definition at line 52 of file GAMGInterface.C.
References GAMGInterface::faceCells_, GAMGInterface::faceRestrictAddressing_, and forAll.
Referenced by GAMGAgglomeration::combineLevels().
|
virtual |
Definition at line 85 of file GAMGInterface.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), tmp::New(), and Foam::Zero.
|
pure virtual |
Implemented in calculatedProcessorGAMGInterface, processorGAMGInterface, cyclicGAMGInterface, cyclicACMIGAMGInterface, and cyclicAMIGAMGInterface.
Definition at line 118 of file GAMGInterface.C.
References os(), and token::SPACE.
Referenced by cyclicGAMGInterface::write(), processorGAMGInterface::write(), and calculatedProcessorGAMGInterface::write().
Foam::tmp<Foam::Field<Type> > interfaceInternalField | ( | const UList< Type > & | iF | ) | const |
Definition at line 28 of file GAMGInterfaceTemplates.C.
References Foam::New().
Foam::tmp<Foam::Field<Type> > interfaceInternalField | ( | const UList< Type > & | iF, |
const labelUList & | faceCells | ||
) | const |
Definition at line 40 of file GAMGInterfaceTemplates.C.
References forAll, and Foam::New().
|
protected |
Definition at line 59 of file GAMGInterface.H.
Referenced by GAMGInterface::index().
|
protected |
Definition at line 62 of file GAMGInterface.H.
Referenced by GAMGInterface::coarseInterfaces(), cyclicAMIGAMGInterface::neighbPatch(), cyclicACMIGAMGInterface::neighbPatch(), and cyclicGAMGInterface::neighbPatch().
|
protected |
Definition at line 65 of file GAMGInterface.H.
Referenced by GAMGInterface::combine(), GAMGInterface::faceCells(), and GAMGInterface::size().
|
protected |
Definition at line 68 of file GAMGInterface.H.
Referenced by GAMGInterface::combine(), and GAMGInterface::faceRestrictAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.