Concrete implementation of processor interface. Used to temporarily store settings. More...
Public Member Functions | |
TypeNameNoDebug ("processorInterface") | |
Runtime type information. More... | |
void | operator= (const lduPrimitiveProcessorInterface &)=delete |
No copy assignment. More... | |
lduPrimitiveProcessorInterface (const labelUList &faceCells, const label myProcNo, const label neighbProcNo, const tensorField &forwardT, const int tag, const label comm=UPstream::worldComm) | |
Construct from components. More... | |
lduPrimitiveProcessorInterface (const lduPrimitiveProcessorInterface &) | |
Copy constructor. More... | |
virtual | ~lduPrimitiveProcessorInterface ()=default |
Destructor. More... | |
virtual const labelUList & | faceCells () const |
Return faceCell addressing. More... | |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData) const |
Return the values of the given internal data adjacent to the interface as a field. More... | |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData, const labelUList &faceCells) const |
Return the values of the given internal data adjacent to the interface as a field using faceCells mapping. More... | |
virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
Initialise neighbour field transfer. More... | |
virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF, const labelUList &faceCells) const |
Initialise neighbour field transfer using faceCells. More... | |
virtual tmp< labelField > | internalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
Transfer and return internal field adjacent to the interface. More... | |
virtual label | comm () const |
Return communicator used for sending. More... | |
virtual int | myProcNo () const |
Return processor number (rank in communicator) More... | |
virtual int | neighbProcNo () const |
Return neighbour processor number (rank in communicator) More... | |
virtual const tensorField & | forwardT () const |
Return face transformation tensor. More... | |
virtual int | tag () const |
Return message tag used for sending. More... | |
int & | tag () |
Message tag used for sending (modifiable) More... | |
Public Member Functions inherited from lduInterface | |
TypeNameNoDebug ("lduInterface") | |
Runtime type information. More... | |
lduInterface () noexcept=default | |
Default construct. More... | |
virtual | ~lduInterface ()=default |
Destructor. More... | |
Public Member Functions inherited from processorLduInterface | |
TypeNameNoDebug ("processorLduInterface") | |
Runtime type information. More... | |
processorLduInterface () noexcept=default | |
Default construct. More... | |
virtual | ~processorLduInterface ()=default |
Destructor. More... | |
template<class Type > | |
void | send (const UPstream::commsTypes commsType, const UList< Type > &f) const |
Raw send function. More... | |
template<class Type > | |
void | receive (const UPstream::commsTypes commsType, UList< Type > &f) const |
Raw receive function. More... | |
template<class Type > | |
tmp< Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
Raw receive function returning field. More... | |
template<class Type > | |
void | compressedSend (const UPstream::commsTypes commsType, const UList< Type > &f) const |
Raw send function with data compression. More... | |
template<class Type > | |
void | compressedReceive (const UPstream::commsTypes commsType, UList< Type > &f) const |
Raw receive function with data compression. More... | |
template<class Type > | |
tmp< Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
Raw receive function with data compression returning field. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
Concrete implementation of processor interface. Used to temporarily store settings.
Definition at line 49 of file lduPrimitiveProcessorInterface.H.
lduPrimitiveProcessorInterface | ( | const labelUList & | faceCells, |
const label | myProcNo, | ||
const label | neighbProcNo, | ||
const tensorField & | forwardT, | ||
const int | tag, | ||
const label | comm = UPstream::worldComm |
||
) |
Construct from components.
Definition at line 49 of file lduPrimitiveProcessorInterface.C.
Copy constructor.
Definition at line 35 of file lduPrimitiveProcessorInterface.C.
|
virtualdefault |
Destructor.
TypeNameNoDebug | ( | "processorInterface" | ) |
Runtime type information.
|
delete |
No copy assignment.
|
inlinevirtual |
Return faceCell addressing.
Implements lduInterface.
Definition at line 140 of file lduPrimitiveProcessorInterface.H.
|
virtual |
Return the values of the given internal data adjacent to the interface as a field.
Implements lduInterface.
Definition at line 71 of file lduPrimitiveProcessorInterface.C.
|
virtual |
Return the values of the given internal data adjacent to the interface as a field using faceCells mapping.
Implements lduInterface.
Definition at line 81 of file lduPrimitiveProcessorInterface.C.
References fld, forAll, and Foam::New().
|
virtual |
Initialise neighbour field transfer.
Reimplemented from lduInterface.
Definition at line 98 of file lduPrimitiveProcessorInterface.C.
|
virtual |
Initialise neighbour field transfer using faceCells.
Reimplemented from lduInterface.
Definition at line 108 of file lduPrimitiveProcessorInterface.C.
|
virtual |
Transfer and return internal field adjacent to the interface.
Implements lduInterface.
Definition at line 124 of file lduPrimitiveProcessorInterface.C.
|
inlinevirtual |
Return communicator used for sending.
Implements processorLduInterface.
Definition at line 201 of file lduPrimitiveProcessorInterface.H.
Referenced by lduCalculatedProcessorField< Type >::comm(), and calculatedProcessorFvPatchField< Type >::comm().
|
inlinevirtual |
Return processor number (rank in communicator)
Implements processorLduInterface.
Definition at line 209 of file lduPrimitiveProcessorInterface.H.
Referenced by lduCalculatedProcessorField< Type >::myProcNo(), calculatedProcessorFvPatchField< Type >::myProcNo(), lduCalculatedProcessorField< Type >::neighbProcNo(), and calculatedProcessorFvPatchField< Type >::neighbProcNo().
|
inlinevirtual |
Return neighbour processor number (rank in communicator)
Implements processorLduInterface.
Definition at line 217 of file lduPrimitiveProcessorInterface.H.
|
inlinevirtual |
Return face transformation tensor.
Implements processorLduInterface.
Definition at line 225 of file lduPrimitiveProcessorInterface.H.
Referenced by lduCalculatedProcessorField< Type >::forwardT(), and calculatedProcessorFvPatchField< Type >::forwardT().
|
inlinevirtual |
Return message tag used for sending.
Implements processorLduInterface.
Definition at line 233 of file lduPrimitiveProcessorInterface.H.
|
inline |
Message tag used for sending (modifiable)
Definition at line 244 of file lduPrimitiveProcessorInterface.H.