Concrete implementation of processor interface. Used to temporarily store settings. More...
Public Member Functions | |
TypeName ("calculatedProcessor") | |
Runtime type information. 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 |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData, const labelUList &faceCells) const |
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 () |
Return message tag used for sending. More... | |
Public Member Functions inherited from lduInterface | |
TypeName ("lduInterface") | |
Runtime type information. More... | |
lduInterface ()=default | |
Construct null. More... | |
virtual | ~lduInterface ()=default |
Destructor. More... | |
virtual const labelUList & | faceCells () const =0 |
Return faceCell addressing. More... | |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData) const =0 |
Return the values of the given internal data adjacent to. More... | |
virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData, const labelUList &faceCells) const =0 |
virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF) const |
Initialise transfer of internal field adjacent to the interface. More... | |
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 |
Transfer and return internal field adjacent to the interface. More... | |
Public Member Functions inherited from processorLduInterface | |
TypeName ("processorLduInterface") | |
Runtime type information. More... | |
processorLduInterface ()=default | |
Default construct. More... | |
virtual | ~processorLduInterface ()=default |
Destructor. More... | |
virtual label | comm () const =0 |
Return communicator used for parallel communication. More... | |
virtual int | myProcNo () const =0 |
Return processor number (rank in communicator) More... | |
virtual int | neighbProcNo () const =0 |
Return neighbour processor number (rank in communicator) More... | |
virtual const tensorField & | forwardT () const =0 |
Return face transformation tensor. More... | |
virtual int | tag () const =0 |
Return message tag used for sending. More... | |
template<class Type > | |
void | send (const Pstream::commsTypes commsType, const UList< Type > &f) const |
Raw send function. More... | |
template<class Type > | |
void | receive (const Pstream::commsTypes commsType, UList< Type > &f) const |
Raw receive function. More... | |
template<class Type > | |
tmp< Field< Type > > | receive (const Pstream::commsTypes commsType, const label size) const |
Raw receive function returning field. More... | |
template<class Type > | |
void | compressedSend (const Pstream::commsTypes commsType, const UList< Type > &f) const |
Raw send function with data compression. More... | |
template<class Type > | |
void | compressedReceive (const Pstream::commsTypes commsType, UList< Type > &f) const |
Raw receive function with data compression. More... | |
template<class Type > | |
tmp< Field< Type > > | compressedReceive (const Pstream::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 Pstream::commsTypes commsType, const label size) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | compressedReceive (const Pstream::commsTypes commsType, const label size) const |
Concrete implementation of processor interface. Used to temporarily store settings.
Definition at line 53 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 55 of file lduPrimitiveProcessorInterface.C.
Copy constructor.
Definition at line 41 of file lduPrimitiveProcessorInterface.C.
|
virtualdefault |
Destructor.
TypeName | ( | "calculatedProcessor" | ) |
Runtime type information.
|
inlinevirtual |
Return faceCell addressing.
Implements lduInterface.
Definition at line 119 of file lduPrimitiveProcessorInterface.H.
Referenced by dynamicOversetFvMesh::updateAddressing().
|
virtual |
Return the values of the given internal data adjacent to the interface as a field
Implements lduInterface.
Definition at line 77 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 87 of file lduPrimitiveProcessorInterface.C.
References fld(), forAll, and Time::New().
|
virtual |
Initialise neighbour field transfer.
Reimplemented from lduInterface.
Definition at line 104 of file lduPrimitiveProcessorInterface.C.
References processorLduInterface::send().
|
virtual |
Initialise neighbour field transfer using faceCells.
Reimplemented from lduInterface.
Definition at line 114 of file lduPrimitiveProcessorInterface.C.
References processorLduInterface::send().
|
virtual |
Transfer and return internal field adjacent to the interface.
Implements lduInterface.
Definition at line 130 of file lduPrimitiveProcessorInterface.C.
|
inlinevirtual |
Return communicator used for sending.
Implements processorLduInterface.
Definition at line 168 of file lduPrimitiveProcessorInterface.H.
Referenced by calculatedProcessorFvPatchField< Type >::comm(), and lduCalculatedProcessorField< Type >::comm().
|
inlinevirtual |
Return processor number (rank in communicator)
Implements processorLduInterface.
Definition at line 174 of file lduPrimitiveProcessorInterface.H.
Referenced by calculatedProcessorFvPatchField< Type >::myProcNo(), lduCalculatedProcessorField< Type >::myProcNo(), calculatedProcessorFvPatchField< Type >::neighbProcNo(), and lduCalculatedProcessorField< Type >::neighbProcNo().
|
inlinevirtual |
Return neighbour processor number (rank in communicator)
Implements processorLduInterface.
Definition at line 180 of file lduPrimitiveProcessorInterface.H.
|
inlinevirtual |
Return face transformation tensor.
Implements processorLduInterface.
Definition at line 186 of file lduPrimitiveProcessorInterface.H.
Referenced by calculatedProcessorFvPatchField< Type >::forwardT(), and lduCalculatedProcessorField< Type >::forwardT().
|
inlinevirtual |
Return message tag used for sending.
Implements processorLduInterface.
Definition at line 192 of file lduPrimitiveProcessorInterface.H.
|
inline |
Return message tag used for sending.
Definition at line 201 of file lduPrimitiveProcessorInterface.H.