GAMG agglomerated processor interface field. More...
Public Member Functions | |
TypeName ("processor") | |
Runtime type information. More... | |
processorGAMGInterfaceField (const GAMGInterface &GAMGCp, const lduInterfaceField &fineInterface) | |
Construct from GAMG interface and fine level interface field. More... | |
processorGAMGInterfaceField (const GAMGInterface &GAMGCp, const bool doTransform, const int rank) | |
Construct from GAMG interface and fine level interface field. More... | |
virtual | ~processorGAMGInterfaceField ()=default |
Destructor. More... | |
label | size () const |
Return size. More... | |
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. More... | |
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. More... | |
virtual label | comm () const |
Processor interface functions. More... | |
virtual int | myProcNo () const |
Return processor number. More... | |
virtual int | neighbProcNo () const |
Return neighbour processor number. More... | |
virtual bool | doTransform () const |
Does the interface field perform the transformation. More... | |
virtual const tensorField & | forwardT () const |
Return face transformation tensor. More... | |
virtual int | rank () const |
Return rank of component for transform. More... | |
Public Member Functions inherited from GAMGInterfaceField | |
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)) | |
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... | |
const GAMGInterface & | interface () const |
Return interface. More... | |
Public Member Functions inherited from lduInterfaceField | |
TypeName ("lduInterfaceField") | |
Runtime type information. More... | |
lduInterfaceField (const lduInterface &patch) | |
Construct given coupled patch. More... | |
virtual | ~lduInterfaceField ()=default |
Destructor. More... | |
const lduInterface & | interface () const |
Return the interface. More... | |
virtual const word & | interfaceFieldType () const |
Return the interface type. More... | |
bool | updatedMatrix () const |
Whether matrix has been updated. More... | |
bool & | updatedMatrix () |
Whether matrix has been updated. More... | |
virtual bool | ready () const |
Is all data available. 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 |
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 |
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... | |
Public Member Functions inherited from processorLduInterfaceField | |
TypeName ("processorLduInterfaceField") | |
Runtime type information. More... | |
processorLduInterfaceField ()=default | |
Construct null. More... | |
virtual | ~processorLduInterfaceField ()=default |
Destructor. More... | |
virtual label | comm () const =0 |
Return communicator used for comms. More... | |
virtual int | myProcNo () const =0 |
Return processor number. More... | |
virtual int | neighbProcNo () const =0 |
Return neighbour processor number. More... | |
virtual bool | doTransform () const =0 |
Is the transform required. More... | |
virtual const tensorField & | forwardT () const =0 |
Return face transformation tensor. More... | |
virtual int | rank () const =0 |
Return rank of component for transform. More... | |
template<class Type > | |
void | transformCoupleField (Field< Type > &f) const |
Transform given patch field. More... | |
void | transformCoupleField (solveScalarField &f, const direction cmpt) const |
Transform given patch component field. More... | |
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. More... | |
static autoPtr< GAMGInterfaceField > | New (const GAMGInterface &GAMGCp, const bool doTransform, const int rank) |
Return a pointer to a new interface created on freestore given. More... | |
GAMG agglomerated processor interface field.
Definition at line 53 of file processorGAMGInterfaceField.H.
processorGAMGInterfaceField | ( | const GAMGInterface & | GAMGCp, |
const lduInterfaceField & | fineInterface | ||
) |
Construct from GAMG interface and fine level interface field.
Definition at line 55 of file processorGAMGInterfaceField.C.
References p, and Foam::refCast().
processorGAMGInterfaceField | ( | const GAMGInterface & | GAMGCp, |
const bool | doTransform, | ||
const int | rank | ||
) |
Construct from GAMG interface and fine level interface field.
Definition at line 74 of file processorGAMGInterfaceField.C.
|
virtualdefault |
Destructor.
TypeName | ( | "processor" | ) |
Runtime type information.
|
inline |
Return size.
Definition at line 131 of file processorGAMGInterfaceField.H.
References GAMGInterface::size().
|
virtual |
Initialise neighbour matrix update.
Reimplemented from lduInterfaceField.
Definition at line 90 of file processorGAMGInterfaceField.C.
References UPstream::floatTransfer, UPstream::nonBlocking, UPstream::nRequests(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::read(), lduInterfaceField::updatedMatrix(), and ObukhovLength::write().
|
virtual |
Update result field based on interface functionality.
Implements lduInterfaceField.
Definition at line 143 of file processorGAMGInterfaceField.C.
References Foam::add(), UPstream::floatTransfer, UPstream::nonBlocking, UPstream::nRequests(), lduAddressing::patchAddr(), patchId(), UList< T >::size(), lduInterfaceField::updatedMatrix(), and UPstream::waitRequest().
|
inlinevirtual |
Processor interface functions.
Return communicator used for comms
Implements processorLduInterfaceField.
Definition at line 169 of file processorGAMGInterfaceField.H.
References processorGAMGInterface::comm().
|
inlinevirtual |
Return processor number.
Implements processorLduInterfaceField.
Definition at line 175 of file processorGAMGInterfaceField.H.
References processorGAMGInterface::myProcNo().
|
inlinevirtual |
Return neighbour processor number.
Implements processorLduInterfaceField.
Definition at line 181 of file processorGAMGInterfaceField.H.
References processorGAMGInterface::neighbProcNo().
|
inlinevirtual |
Does the interface field perform the transformation.
Implements processorLduInterfaceField.
Definition at line 187 of file processorGAMGInterfaceField.H.
|
inlinevirtual |
Return face transformation tensor.
Implements processorLduInterfaceField.
Definition at line 193 of file processorGAMGInterfaceField.H.
References processorGAMGInterface::forwardT().
|
inlinevirtual |
Return rank of component for transform.
Implements processorLduInterfaceField.
Definition at line 199 of file processorGAMGInterfaceField.H.