lduPrimitiveProcessorInterface Class Reference

Concrete implementation of processor interface. Used to temporarily store settings. More...

Inheritance diagram for lduPrimitiveProcessorInterface:
[legend]
Collaboration diagram for lduPrimitiveProcessorInterface:
[legend]

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...
 
virtual ~lduPrimitiveProcessorInterface ()=default
 Destructor. More...
 
virtual const labelUListfaceCells () const
 Return faceCell addressing. More...
 
virtual tmp< labelFieldinterfaceInternalField (const labelUList &internalData) const
 
virtual tmp< labelFieldinterfaceInternalField (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< labelFieldinternalFieldTransfer (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 tensorFieldforwardT () 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...
 
- Public Member Functions inherited from processorLduInterface
 TypeName ("processorLduInterface")
 Runtime type information. More...
 
 processorLduInterface ()=default
 Construct null. More...
 
virtual ~processorLduInterface ()=default
 Destructor. 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
 

Detailed Description

Concrete implementation of processor interface. Used to temporarily store settings.

Source files

Definition at line 53 of file lduPrimitiveProcessorInterface.H.

Constructor & Destructor Documentation

◆ lduPrimitiveProcessorInterface()

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 42 of file lduPrimitiveProcessorInterface.C.

◆ ~lduPrimitiveProcessorInterface()

virtual ~lduPrimitiveProcessorInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "calculatedProcessor"  )

Runtime type information.

◆ faceCells()

virtual const labelUList& faceCells ( ) const
inlinevirtual

Return faceCell addressing.

Implements lduInterface.

Definition at line 119 of file lduPrimitiveProcessorInterface.H.

Referenced by dynamicOversetFvMesh::updateAddressing().

Here is the caller graph for this function:

◆ interfaceInternalField() [1/2]

Foam::tmp< Foam::labelField > interfaceInternalField ( const labelUList internalData) const
virtual

Return the values of the given internal data adjacent to the interface as a field

Implements lduInterface.

Definition at line 64 of file lduPrimitiveProcessorInterface.C.

◆ interfaceInternalField() [2/2]

Foam::tmp< Foam::labelField > interfaceInternalField ( const labelUList internalData,
const labelUList faceCells 
) const
virtual

Return the values of the given internal data adjacent to the interface as a field using faceCells mapping

Implements lduInterface.

Definition at line 74 of file lduPrimitiveProcessorInterface.C.

References fld, forAll, and Foam::New().

Here is the call graph for this function:

◆ initInternalFieldTransfer() [1/2]

void initInternalFieldTransfer ( const Pstream::commsTypes  commsType,
const labelUList iF 
) const
virtual

Initialise neighbour field transfer.

Reimplemented from lduInterface.

Definition at line 91 of file lduPrimitiveProcessorInterface.C.

◆ initInternalFieldTransfer() [2/2]

void initInternalFieldTransfer ( const Pstream::commsTypes  commsType,
const labelUList iF,
const labelUList faceCells 
) const
virtual

Initialise neighbour field transfer using faceCells.

Reimplemented from lduInterface.

Definition at line 101 of file lduPrimitiveProcessorInterface.C.

◆ internalFieldTransfer()

Foam::tmp< Foam::labelField > internalFieldTransfer ( const Pstream::commsTypes  commsType,
const labelUList iF 
) const
virtual

Transfer and return internal field adjacent to the interface.

Implements lduInterface.

Definition at line 117 of file lduPrimitiveProcessorInterface.C.

◆ comm()

virtual label comm ( ) const
inlinevirtual

Return communicator used for sending.

Implements processorLduInterface.

Definition at line 168 of file lduPrimitiveProcessorInterface.H.

Referenced by calculatedProcessorFvPatchField< Type >::comm().

Here is the caller graph for this function:

◆ myProcNo()

virtual int myProcNo ( ) const
inlinevirtual

Return processor number (rank in communicator)

Implements processorLduInterface.

Definition at line 174 of file lduPrimitiveProcessorInterface.H.

Referenced by calculatedProcessorFvPatchField< Type >::myProcNo(), and calculatedProcessorFvPatchField< Type >::neighbProcNo().

Here is the caller graph for this function:

◆ neighbProcNo()

virtual int neighbProcNo ( ) const
inlinevirtual

Return neighbour processor number (rank in communicator)

Implements processorLduInterface.

Definition at line 180 of file lduPrimitiveProcessorInterface.H.

◆ forwardT()

virtual const tensorField& forwardT ( ) const
inlinevirtual

Return face transformation tensor.

Implements processorLduInterface.

Definition at line 186 of file lduPrimitiveProcessorInterface.H.

Referenced by calculatedProcessorFvPatchField< Type >::forwardT().

Here is the caller graph for this function:

◆ tag() [1/2]

virtual int tag ( ) const
inlinevirtual

Return message tag used for sending.

Implements processorLduInterface.

Definition at line 192 of file lduPrimitiveProcessorInterface.H.

◆ tag() [2/2]

int& tag ( )
inline

Return message tag used for sending.

Definition at line 201 of file lduPrimitiveProcessorInterface.H.


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