GAMGInterfaceField Class Referenceabstract

Abstract base class for GAMG agglomerated interface fields. More...

Inheritance diagram for GAMGInterfaceField:
Collaboration diagram for GAMGInterfaceField:

Public Member Functions

 TypeName ("GAMGInterfaceField")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, GAMGInterfaceField, lduInterfaceField,(const GAMGInterface &GAMGCp, const lduInterfaceField &fineInterface),(GAMGCp, fineInterface))
 
 declareRunTimeSelectionTable (autoPtr, GAMGInterfaceField, lduInterface,(const GAMGInterface &GAMGCp, const bool doTransform, const int rank),(GAMGCp, doTransform, rank))
 
 declareRunTimeSelectionTable (autoPtr, GAMGInterfaceField, Istream,(const GAMGInterface &GAMGCp, Istream &is),(GAMGCp, is))
 
 GAMGInterfaceField (const GAMGInterface &GAMGCp, const lduInterfaceField &)
 Construct from GAMG interface and fine level interface field. More...
 
 GAMGInterfaceField (const GAMGInterface &GAMGCp, const bool doTransform, const int rank)
 Construct from GAMG interface and fine level interface field. More...
 
 GAMGInterfaceField (const GAMGInterface &GAMGCp, Istream &is)
 Construct from GAMG interface and fine level interface field. More...
 
virtual autoPtr< GAMGInterfaceFieldclone (const GAMGInterface &GAMGCp, const UPtrList< lduInterfaceField > &other) const =0
 Construct by assembling and return a clone. More...
 
virtual ~GAMGInterfaceField ()=default
 Destructor. More...
 
const GAMGInterfaceinterface () const
 Return interface. More...
 
virtual void write (Ostream &) const =0
 Write to stream. More...
 
- Public Member Functions inherited from lduInterfaceField
 TypeName ("lduInterfaceField")
 Runtime type information. More...
 
 lduInterfaceField (const lduInterfaceField &)=delete
 No copy construct. More...
 
void operator= (const lduInterfaceField &)=delete
 No copy assignment. More...
 
 lduInterfaceField (const lduInterface &patch)
 Construct given coupled patch. More...
 
virtual ~lduInterfaceField ()=default
 Destructor. More...
 
const lduInterfaceinterface () const noexcept
 Return the interface. More...
 
virtual const wordinterfaceFieldType () const
 Return the interface type. More...
 
virtual bool ready () const
 Are all (receive) data available? More...
 
bool updatedMatrix () const noexcept
 Whether matrix has been updated. More...
 
bool updatedMatrix (bool flag) const noexcept
 Set matrix as update-to-date, return the previous value. More...
 
virtual void initInterfaceMatrixUpdate (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 Initialise neighbour matrix update. Add/subtract coupled contributions to matrix. More...
 
virtual void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const =0
 Update result field based on interface functionality. Add/subtract coupled contributions to matrix. More...
 
template<class Type >
void addToInternalField (Field< Type > &result, const bool add, const labelUList &faceCells, const scalarField &coeffs, const Field< Type > &vals) const
 Add/subtract weighted contributions to internal field. More...
 
bool & updatedMatrix () noexcept
 Adjust whether matrix has been updated. More...
 

Static Public Member Functions

static autoPtr< GAMGInterfaceFieldNew (const GAMGInterface &GAMGCp, const lduInterfaceField &fineInterface)
 Return a pointer to a new interface created on freestore given. More...
 
static autoPtr< GAMGInterfaceFieldNew (const GAMGInterface &GAMGCp, const bool doTransform, const int rank)
 Return a pointer to a new interface created on freestore given. More...
 
static autoPtr< GAMGInterfaceFieldNew (const word &patchFieldType, const GAMGInterface &GAMGCp, Istream &is)
 Return a pointer to a new interface created on freestore given. More...
 

Detailed Description

Abstract base class for GAMG agglomerated interface fields.

Source files

Definition at line 50 of file GAMGInterfaceField.H.

Constructor & Destructor Documentation

◆ GAMGInterfaceField() [1/3]

GAMGInterfaceField ( const GAMGInterface GAMGCp,
const lduInterfaceField  
)
inline

Construct from GAMG interface and fine level interface field.

Definition at line 167 of file GAMGInterfaceField.H.

◆ GAMGInterfaceField() [2/3]

GAMGInterfaceField ( const GAMGInterface GAMGCp,
const bool  doTransform,
const int  rank 
)
inline

Construct from GAMG interface and fine level interface field.

Definition at line 180 of file GAMGInterfaceField.H.

◆ GAMGInterfaceField() [3/3]

GAMGInterfaceField ( const GAMGInterface GAMGCp,
Istream is 
)
inline

Construct from GAMG interface and fine level interface field.

Definition at line 194 of file GAMGInterfaceField.H.

◆ ~GAMGInterfaceField()

virtual ~GAMGInterfaceField ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "GAMGInterfaceField"  )

Runtime type information.

◆ declareRunTimeSelectionTable() [1/3]

declareRunTimeSelectionTable ( autoPtr  ,
GAMGInterfaceField  ,
lduInterfaceField  ,
(const GAMGInterface &GAMGCp, const lduInterfaceField &fineInterface)  ,
(GAMGCp, fineInterface)   
)

◆ declareRunTimeSelectionTable() [2/3]

declareRunTimeSelectionTable ( autoPtr  ,
GAMGInterfaceField  ,
lduInterface  ,
(const GAMGInterface &GAMGCp, const bool doTransform, const int rank)  ,
(GAMGCp, doTransform, rank)   
)

◆ declareRunTimeSelectionTable() [3/3]

declareRunTimeSelectionTable ( autoPtr  ,
GAMGInterfaceField  ,
Istream  ,
(const GAMGInterface &GAMGCp, Istream &is)  ,
(GAMGCp, is)   
)

◆ New() [1/3]

Foam::autoPtr< Foam::GAMGInterfaceField > New ( const GAMGInterface GAMGCp,
const lduInterfaceField fineInterface 
)
static

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

the fine interface

Definition at line 27 of file GAMGInterfaceFieldNew.C.

References Foam::exit(), Foam::FatalError, FatalErrorInLookup, and lduInterfaceField::interfaceFieldType().

Here is the call graph for this function:

◆ New() [2/3]

Foam::autoPtr< Foam::GAMGInterfaceField > New ( const GAMGInterface GAMGCp,
const bool  doTransform,
const int  rank 
)
static

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

the fine interface

Definition at line 51 of file GAMGInterfaceFieldNew.C.

References Foam::exit(), Foam::FatalError, FatalErrorInLookup, and Foam::expressions::Detail::rank().

Here is the call graph for this function:

◆ New() [3/3]

Foam::autoPtr< Foam::GAMGInterfaceField > New ( const word patchFieldType,
const GAMGInterface GAMGCp,
Istream is 
)
static

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

the fine interface and stream

Definition at line 76 of file GAMGInterfaceFieldNew.C.

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

Here is the call graph for this function:

◆ clone()

◆ interface()

const GAMGInterface& interface ( ) const
inline

Return interface.

Definition at line 226 of file GAMGInterfaceField.H.

◆ write()


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