Loading...
Searching...
No Matches
cyclicAMIGAMGInterfaceField Class Reference

GAMG agglomerated cyclic interface field. More...

#include <cyclicAMIGAMGInterfaceField.H>

Inheritance diagram for cyclicAMIGAMGInterfaceField:
Collaboration diagram for cyclicAMIGAMGInterfaceField:

Public Member Functions

 TypeName ("cyclicAMI")
 Runtime type information.
 cyclicAMIGAMGInterfaceField (const GAMGInterface &GAMGCp, const lduInterfaceField &fineInterfaceField)
 Construct from GAMG interface and fine level interface field.
 cyclicAMIGAMGInterfaceField (const GAMGInterface &GAMGCp, const bool doTransform, const int rank)
 Construct from GAMG interface and fine level interface field.
 cyclicAMIGAMGInterfaceField (const GAMGInterface &GAMGCp, Istream &is)
 Construct from GAMG interface and Istream.
 cyclicAMIGAMGInterfaceField (const GAMGInterface &GAMGCp, const lduInterfaceField &local, const UPtrList< lduInterfaceField > &other)
 Construct from GAMG interface and local and remote fields.
virtual autoPtr< GAMGInterfaceField > clone (const GAMGInterface &GAMGCp, const UPtrList< lduInterfaceField > &other) const
 Construct by assembling and return a clone.
virtual ~cyclicAMIGAMGInterfaceField ()=default
 Destructor.
label size () const
 Return size.
virtual bool ready () const
 Are all (receive) data available?
virtual void initInterfaceMatrixUpdate (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 Initialise neighbour matrix update.
virtual void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 Update result field based on interface functionality.
virtual bool doTransform () const
 Cyclic interface functions.
virtual const tensorFieldforwardT () const
 Return face transformation tensor.
virtual const tensorFieldreverseT () const
 Return neighbour-cell transformation tensor.
virtual int rank () const
 Return rank of component for transform.
virtual void write (Ostream &) const
 Write to stream.
Public Member Functions inherited from GAMGInterfaceField
 TypeName ("GAMGInterfaceField")
 Runtime type information.
 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.
 GAMGInterfaceField (const GAMGInterface &GAMGCp, const bool doTransform, const int rank)
 Construct from GAMG interface and fine level interface field.
 GAMGInterfaceField (const GAMGInterface &GAMGCp, Istream &is)
 Construct from GAMG interface and fine level interface field.
virtual ~GAMGInterfaceField ()=default
 Destructor.
const GAMGInterfaceinterface () const
 Return interface.
Public Member Functions inherited from lduInterfaceField
 TypeName ("lduInterfaceField")
 Runtime type information.
 lduInterfaceField (const lduInterfaceField &)=delete
 No copy construct.
void operator= (const lduInterfaceField &)=delete
 No copy assignment.
 lduInterfaceField (const lduInterface &patch)
 Construct given coupled patch.
virtual ~lduInterfaceField ()=default
 Destructor.
const lduInterfaceinterface () const noexcept
 Return the interface.
virtual const wordinterfaceFieldType () const
 Return the interface type.
bool updatedMatrix () const noexcept
 Whether matrix has been updated.
bool updatedMatrix (bool flag) const noexcept
 Set matrix as update-to-date, return the previous value.
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.
bool & updatedMatrix () noexcept
 Adjust whether matrix has been updated.
Public Member Functions inherited from cyclicAMILduInterfaceField
 TypeName ("cyclicAMILduInterfaceField")
 Runtime type information.
 cyclicAMILduInterfaceField ()
 Construct null.
virtual ~cyclicAMILduInterfaceField ()
 Destructor.
template<class Type>
void transformCoupleField (Field< Type > &f) const
 Transform given patch field.
void transformCoupleField (solveScalarField &psiInternal, const direction cmpt) const
 Transform given patch internal field.

Additional Inherited Members

Static Public Member Functions inherited from GAMGInterfaceField
static autoPtr< GAMGInterfaceField > New (const GAMGInterface &GAMGCp, const lduInterfaceField &fineInterface)
 Return a pointer to a new interface created on freestore given.
static autoPtr< GAMGInterfaceField > New (const GAMGInterface &GAMGCp, const bool doTransform, const int rank)
 Return a pointer to a new interface created on freestore given.
static autoPtr< GAMGInterfaceField > New (const word &patchFieldType, const GAMGInterface &GAMGCp, Istream &is)
 Return a pointer to a new interface created on freestore given.

Detailed Description

GAMG agglomerated cyclic interface field.

Source files

Definition at line 49 of file cyclicAMIGAMGInterfaceField.H.

Constructor & Destructor Documentation

◆ cyclicAMIGAMGInterfaceField() [1/4]

cyclicAMIGAMGInterfaceField ( const GAMGInterface & GAMGCp,
const lduInterfaceField & fineInterfaceField )

Construct from GAMG interface and fine level interface field.

Definition at line 54 of file cyclicAMIGAMGInterfaceField.C.

References cyclicAMILduInterfaceField::cyclicAMILduInterfaceField(), p, and Foam::refCast().

Here is the call graph for this function:

◆ cyclicAMIGAMGInterfaceField() [2/4]

cyclicAMIGAMGInterfaceField ( const GAMGInterface & GAMGCp,
const bool doTransform,
const int rank )

Construct from GAMG interface and fine level interface field.

Definition at line 73 of file cyclicAMIGAMGInterfaceField.C.

References doTransform(), rank(), and Foam::refCast().

Here is the call graph for this function:

◆ cyclicAMIGAMGInterfaceField() [3/4]

cyclicAMIGAMGInterfaceField ( const GAMGInterface & GAMGCp,
Istream & is )

Construct from GAMG interface and Istream.

Definition at line 87 of file cyclicAMIGAMGInterfaceField.C.

References Foam::readBool(), Foam::readLabel(), and Foam::refCast().

Here is the call graph for this function:

◆ cyclicAMIGAMGInterfaceField() [4/4]

cyclicAMIGAMGInterfaceField ( const GAMGInterface & GAMGCp,
const lduInterfaceField & local,
const UPtrList< lduInterfaceField > & other )

Construct from GAMG interface and local and remote fields.

Definition at line 100 of file cyclicAMIGAMGInterfaceField.C.

References local, p, and Foam::refCast().

Here is the call graph for this function:

◆ ~cyclicAMIGAMGInterfaceField()

virtual ~cyclicAMIGAMGInterfaceField ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "cyclicAMI" )

Runtime type information.

References doTransform(), local, and rank().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< GAMGInterfaceField > clone ( const GAMGInterface & GAMGCp,
const UPtrList< lduInterfaceField > & other ) const
inlinevirtual

Construct by assembling and return a clone.

Implements GAMGInterfaceField.

Definition at line 185 of file cyclicAMIGAMGInterfaceField.H.

◆ size()

label size ( ) const
inline

Return size.

Definition at line 216 of file cyclicAMIGAMGInterfaceField.H.

◆ ready()

bool ready ( ) const
virtual

Are all (receive) data available?

Reimplemented from lduInterfaceField.

Definition at line 121 of file cyclicAMIGAMGInterfaceField.C.

References UPstream::finishedRequests().

Here is the call graph for this function:

◆ initInterfaceMatrixUpdate()

void initInterfaceMatrixUpdate ( solveScalarField & result,
const bool add,
const lduAddressing & lduAddr,
const label patchId,
const solveScalarField & psiInternal,
const scalarField & coeffs,
const direction cmpt,
const Pstream::commsTypes commsType ) const
virtual

◆ updateInterfaceMatrix()

void updateInterfaceMatrix ( solveScalarField & result,
const bool add,
const lduAddressing & lduAddr,
const label patchId,
const solveScalarField & psiInternal,
const scalarField & coeffs,
const direction cmpt,
const Pstream::commsTypes commsType ) const
virtual

◆ doTransform()

virtual bool doTransform ( ) const
inlinevirtual

Cyclic interface functions.

Does the interface field perform the transformation

Implements cyclicAMILduInterfaceField.

Definition at line 267 of file cyclicAMIGAMGInterfaceField.H.

Referenced by cyclicAMIGAMGInterfaceField(), TypeName(), and write().

Here is the caller graph for this function:

◆ forwardT()

virtual const tensorField & forwardT ( ) const
inlinevirtual

Return face transformation tensor.

Implements cyclicAMILduInterfaceField.

Definition at line 275 of file cyclicAMIGAMGInterfaceField.H.

◆ reverseT()

virtual const tensorField & reverseT ( ) const
inlinevirtual

Return neighbour-cell transformation tensor.

Implements cyclicAMILduInterfaceField.

Definition at line 283 of file cyclicAMIGAMGInterfaceField.H.

◆ rank()

virtual int rank ( ) const
inlinevirtual

Return rank of component for transform.

Implements cyclicAMILduInterfaceField.

Definition at line 291 of file cyclicAMIGAMGInterfaceField.H.

Referenced by cyclicAMIGAMGInterfaceField(), TypeName(), and write().

Here is the caller graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write to stream.

Implements GAMGInterfaceField.

Definition at line 526 of file cyclicAMIGAMGInterfaceField.C.

References doTransform(), os(), rank(), and token::SPACE.

Here is the call graph for this function:

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